Mercurial > hg > nginx-tests
changeset 77:ff5f4f298532
Tests: merge.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 28 Mar 2009 01:18:06 +0300 |
parents | f81c6be872e5 (current diff) c7e29639f915 (diff) |
children | c893908c1a44 |
files | lib/Test/Nginx.pm |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
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;