From: Paul Mackerras Date: Mon, 23 Jun 2008 11:47:18 +0000 (+0000) Subject: Only kill the whole process group if we have detached X-Git-Tag: ppp-2.4.7~80 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=7e54469ed4f3c2ecc1006475dcd10df1d1fe35d3;hp=7e54469ed4f3c2ecc1006475dcd10df1d1fe35d3;p=ppp.git 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. ---