From 73e42a42b14252467877e77090f23111fea522ec Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Fri, 19 Nov 2010 21:09:37 +0000 Subject: [PATCH] Update BackgroundTask to use same cwd for spawned process --- lib/RippingCluster/BackgroundTask.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/RippingCluster/BackgroundTask.class.php b/lib/RippingCluster/BackgroundTask.class.php index dc4cb45..54b3a7f 100644 --- a/lib/RippingCluster/BackgroundTask.class.php +++ b/lib/RippingCluster/BackgroundTask.class.php @@ -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); } }; -?> \ No newline at end of file +?>