mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
fix test on ultra-fast-machines and/or SOs with long time slices
# Thanks Tony
This commit is contained in:
parent
dfbc224555
commit
d94e388d74
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,8 @@ $cat = proc_open(
|
||||||
$pipes
|
$pipes
|
||||||
);
|
);
|
||||||
|
|
||||||
|
sleep(1); // let the OS run the nohup process before sending the signal
|
||||||
|
|
||||||
var_dump(proc_terminate($cat, 1)); // send a SIGHUP
|
var_dump(proc_terminate($cat, 1)); // send a SIGHUP
|
||||||
sleep(1);
|
sleep(1);
|
||||||
var_dump(proc_get_status($cat));
|
var_dump(proc_get_status($cat));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue