]> granicus.if.org Git - ngircd/commit
Remove Proc_Kill(), use timeout to kill child processes
authorAlexander Barton <alex@barton.de>
Wed, 14 Jul 2010 08:29:05 +0000 (10:29 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 14 Jul 2010 08:29:05 +0000 (10:29 +0200)
commit6ebb31ab35e7f9258f4df9d0bfd111dc75677bfe
tree487cb342bd64df4037fca5947e744cef56d62d0e
parentcf93881dfbd7b6317d2a41f87e9751b74354203b
Remove Proc_Kill(), use timeout to kill child processes

This avoids a race and potentionally killing the wrong process on
systems that use randomized process IDs; now the child itself is
responsible to exit in a timely manner using SIGALRM.
src/ngircd/conn.c
src/ngircd/irc-login.c
src/ngircd/proc.c
src/ngircd/proc.h
src/ngircd/resolve.c