nlopess         Thu Feb 22 11:48:15 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/standard/tests/general_functions       proc_open02.phpt 
  Log:
  fix test on ultra-fast-machines and/or SOs with long time slices
  # Thanks Tony
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/general_functions/proc_open02.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/standard/tests/general_functions/proc_open02.phpt
diff -u php-src/ext/standard/tests/general_functions/proc_open02.phpt:1.1.2.2 
php-src/ext/standard/tests/general_functions/proc_open02.phpt:1.1.2.3
--- php-src/ext/standard/tests/general_functions/proc_open02.phpt:1.1.2.2       
Wed Feb 21 16:25:37 2007
+++ php-src/ext/standard/tests/general_functions/proc_open02.phpt       Thu Feb 
22 11:48:14 2007
@@ -15,6 +15,8 @@
        $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));

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to