]> granicus.if.org Git - php/commitdiff
fix test on ultra-fast-machines and/or SOs with long time slices
authorNuno Lopes <nlopess@php.net>
Thu, 22 Feb 2007 11:48:14 +0000 (11:48 +0000)
committerNuno Lopes <nlopess@php.net>
Thu, 22 Feb 2007 11:48:14 +0000 (11:48 +0000)
# Thanks Tony

ext/standard/tests/general_functions/proc_open02.phpt

index b086f6f6e1d63f86e65a6e3664628969858b3a1f..3cba15e9ad6d1bf8ca1c83d9159241ec779f61b1 100644 (file)
@@ -15,6 +15,8 @@ $cat = proc_open(
        $pipes
 );
 
+sleep(1); // let the OS run the nohup process before sending the signal
+
 var_dump(proc_terminate($cat, 1)); // send a SIGHUP
 sleep(1);
 var_dump(proc_get_status($cat));