On 2008-06-25, Peter Pentchev roam@ringlet.net wrote:
On Wed, Jun 25, 2008 at 02:57:39PM +0000, Grant Edwards wrote:
Before the application exits, it needs to stop stunnel. I send a SIGINT to the PID that was created using the fork, but only the first "master" copy terminates -- the master stunnel process doesn't terminate its children when it exits.
[...]
If you have built stunnel with libwrap support, chances are high that the patch from this message might help you:
http://stunnel.mirt.net/pipermail/stunnel-users/2008-June/002021.html
I decided to run stunnel in its own process group. That way I can just send a SIGINT to the whole group when I want stunnel to terminate. So far it seems to be working...