[stunnel-users] How do I kill stunnel?

Peter Pentchev roam at ringlet.net
Wed Jun 25 17:38:22 CEST 2008

On Wed, Jun 25, 2008 at 02:57:39PM +0000, Grant Edwards wrote:
> I've got an application that starts stunnel using equivalent of
> a fork/exec.  The stunnel process then appears to fork off
> multiple copies of itself.
> 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.  So I end
> up with a bunch of "orphaned" stunnel processes.  They're not
> zombies, they're process that are either in state R or S
> (runnable or sleeping).
> How do I tell stunnel to not only terminate, but to terminate
> whatever child processes it has created?

If you have built stunnel with libwrap support, chances are high
that the patch from this message might help you:



Peter Pentchev	roam at ringlet.net    roam at cnsys.bg    roam at FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
This would easier understand fewer had omitted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20080625/91889d73/attachment.sig>

More information about the stunnel-users mailing list