From fd1f99ff5250f1f3bbd444af9e9fb1ee5bc6e20a Mon Sep 17 00:00:00 2001 From: "Yichun Zhang (agentzh)" Date: Wed, 20 Aug 2014 20:50:37 -0700 Subject: [PATCH] resty: removed the redundant child process reaping code, which also fixes a warning reported by Anton Heryanto. --- util/resty | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/util/resty b/util/resty index e7c9d72..7dddf07 100755 --- a/util/resty +++ b/util/resty @@ -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) {