diff options
author | Paul Mackerras <paulus@samba.org> | 2006-06-04 03:52:50 +0000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-06-04 03:52:50 +0000 |
commit | d929a8d4e1d3e5ff15068ea3b538598b6d448943 (patch) | |
tree | ff466db52863adccc6e2f8815a2664b616b3cb4c /chat | |
parent | d6e4ac0c098b02de9cc7907133d209da1bbf99df (diff) | |
download | ppp-d929a8d4e1d3e5ff15068ea3b538598b6d448943.tar.gz |
Fix snafu in run_program(). Patch from Robert Vogelgesang.
This patch splits out the major part of reap_kids() into a new
function, forget_child(), and calls this new function instead of
reap_kids() in run_program(), after having waitpid()'ed for a child.
Rationale:
The waitpid() at the start of reap_kids() has no chance to get the
PID of the child already waited for in run_program().
As a consequence, the PID of that child will stay in the list of all
children until the end of the pppd process, which is bad, because
pppd will then try to kill -TERM that PID (and might kill some
innocent third party at this point).
Diffstat (limited to 'chat')
0 files changed, 0 insertions, 0 deletions