[stunnel-users] How do I kill stunnel?

Grant Edwards grante at visi.com
Wed Jun 25 17:48:24 CEST 2008

On 2008-06-25, Peter Pentchev <roam at 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...

Grant Edwards                   grante             Yow! Hmmm ... an arrogant
                                  at               bouquet with a subtle
                               visi.com            suggestion of POLYVINYL
                                                   CHLORIDE ...

More information about the stunnel-users mailing list