mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
use /usr/bin/nohup instead
This commit is contained in:
parent
6be4ea4d97
commit
4f3150c350
@ -3,14 +3,14 @@ proc_open
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!is_executable('/bin/sleep')) echo 'skip no sleep';
|
||||
if (!is_executable('/bin/nohup')) echo 'skip no nohup';
|
||||
if (!is_executable('/usr/bin/nohup')) echo 'skip no nohup';
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$ds = array(array('pipe', 'r'));
|
||||
|
||||
$cat = proc_open(
|
||||
'/bin/nohup /bin/sleep 50',
|
||||
'/usr/bin/nohup /bin/sleep 50',
|
||||
$ds,
|
||||
$pipes
|
||||
);
|
||||
@ -32,7 +32,7 @@ echo "Done!\n";
|
||||
bool(true)
|
||||
array(8) {
|
||||
["command"]=>
|
||||
string(24) "/bin/nohup /bin/sleep 50"
|
||||
string(28) "/usr/bin/nohup /bin/sleep 50"
|
||||
["pid"]=>
|
||||
int(%d)
|
||||
["running"]=>
|
||||
@ -51,7 +51,7 @@ array(8) {
|
||||
bool(true)
|
||||
array(8) {
|
||||
["command"]=>
|
||||
string(24) "/bin/nohup /bin/sleep 50"
|
||||
string(28) "/usr/bin/nohup /bin/sleep 50"
|
||||
["pid"]=>
|
||||
int(%d)
|
||||
["running"]=>
|
||||
|
Loading…
Reference in New Issue
Block a user