|
@@ -974,7 +974,7 @@ class Worker
|
|
|
// Send stop signal to master process.
|
|
// Send stop signal to master process.
|
|
|
$master_pid && \posix_kill($master_pid, $sig);
|
|
$master_pid && \posix_kill($master_pid, $sig);
|
|
|
// Timeout.
|
|
// Timeout.
|
|
|
- $timeout = 5;
|
|
|
|
|
|
|
+ $timeout = static::$stopTimeout + 3;
|
|
|
$start_time = \time();
|
|
$start_time = \time();
|
|
|
// Check master process is still alive?
|
|
// Check master process is still alive?
|
|
|
while (1) {
|
|
while (1) {
|