]> git.ozlabs.org Git - ppp.git/commit - pppd/pppd.h
Only kill the whole process group if we have detached
authorPaul Mackerras <paulus@samba.org>
Mon, 23 Jun 2008 11:47:18 +0000 (11:47 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 23 Jun 2008 11:47:18 +0000 (11:47 +0000)
commit7e54469ed4f3c2ecc1006475dcd10df1d1fe35d3
tree19515ad17d301e8b4018fb0bfe2f68b127425172
parent8f09debe1ccab6c267f1d803bfa6facdd30b56e0
Only kill the whole process group if we have detached

Previously we always sent a signal to the whole of our current process
group when we got a signal such as SIGINT or SIGTERM.  That's OK if
we have detached, because then we have our own process group, but not
if we haven't, because there might be other processes in our process
group that we don't know about.  In the latter case we now just send
the signal individually to the child processes that we have forked off
to run things like the connect script, charshunt or pty command.
pppd/main.c
pppd/pppd.h