Update BackgroundTask to use same cwd for spawned process
This commit is contained in:
@@ -8,10 +8,10 @@ class RippingCluster_BackgroundTask {
|
||||
|
||||
public static function run($command) {
|
||||
$pipes = array();
|
||||
$pid = proc_open($command . ' &', array(), $pipes);
|
||||
$pid = proc_open($command . ' &', array(), $pipes, getcwd());
|
||||
proc_close($pid);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user