resty: removed the redundant child process reaping code, which also fixes a warning reported by Anton Heryanto.

This commit is contained in:
Yichun Zhang (agentzh) 2014-08-20 20:50:37 -07:00
parent 1140a2fa67
commit fd1f99ff52
1 changed files with 0 additions and 18 deletions

View File

@ -155,24 +155,6 @@ my $cmd = "$nginx_path -p $prefix_dir/";
my $child_pid;
sub reaper {
$SIG{CHLD} = \&reaper;
if ($child_pid) {
my ($pid, $status);
do {
$pid = waitpid(-1, WNOHANG);
if ($child_pid == $pid) {
$status = $?;
undef $child_pid;
last;
}
} while $pid > 0;
exit($status || 0);
}
}
$SIG{CHLD}=\&reaper;
sub sigint {
$SIG{INT} = \&sigint;
if ($child_pid) {