Mercurial > hg > nginx-tests
diff lib/Test/Nginx.pm @ 77:ff5f4f298532
Tests: merge.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 28 Mar 2009 01:18:06 +0300 |
parents | 5f56040c39df c7e29639f915 |
children | d5330d926fac |
line wrap: on
line diff
--- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm @@ -145,8 +145,7 @@ sub stop() { while ($self->{_daemons} && scalar @{$self->{_daemons}}) { my $p = shift @{$self->{_daemons}}; - # SIGTERM to process group - kill -15, $p; + kill 'TERM', $p; wait; } @@ -186,7 +185,6 @@ sub run_daemon($;@) { die "Can't fork daemon: $!\n" unless defined $pid; if ($pid == 0) { - setpgrp(0, 0); if (ref($code) eq 'CODE') { $code->(@args); exit 0;