commit | 809ea9b1857b6a723c1f0153640342b6390c39a0 | [log] [tgz] |
---|---|---|
author | Jan Stancek <jstancek@redhat.com> | Mon Nov 07 13:53:42 2011 +0100 |
committer | Cyril Hrubis <metan@ucw.cz> | Wed Nov 16 15:14:43 2011 +0100 |
tree | 6e34fcc786318fa32e34d493857c91015af195da | |
parent | 1c9037b8338bb6311406c36faf46a5db4be00838 [diff] |
recvmsg01: kill child only if one was forked If start_server() fails, then pid will end up with -1 and cleanup() will do kill(-1, SIGKILL), which kills everything this process can kill. Change the test to kill pid (child) only when it successfully creates one. Signed-off-by: Jan Stancek <jstancek@redhat.com>