# HG changeset patch # User Sergey Kandaurov # Date 1491819229 -10800 # Node ID feb91ae3fca3e234551b091d6091d33ffc36f050 # Parent e1225e304e46548cde7b99db244556f9bd39de1a Tests: reduced race in worker_shutdown_timeout test. Made sure that HUP is sent after an old worker process accepted a connection. Previously, a new worker process started early could win in accept() race. diff --git a/worker_shutdown_timeout.t b/worker_shutdown_timeout.t --- a/worker_shutdown_timeout.t +++ b/worker_shutdown_timeout.t @@ -56,6 +56,8 @@ EOF my $s = http('', start => 1); +select undef, undef, undef, 0.2; + kill 'HUP', $t->read_file('nginx.pid'); if (IO::Select->new($s)->can_read(5)) {