Assign the output of exec to a var to avoid any issues

This commit is contained in:
Ermal 2013-02-13 18:17:04 +00:00
parent 87613be46d
commit fba1804f83

View File

@ -1089,10 +1089,11 @@ function mwexec_bg($command, $clearsigmask = false) {
$oldset = array();
pcntl_sigprocmask(SIG_SETMASK, array(), $oldset);
}
exec("nohup $command > /dev/null 2>&1 &");
$_gb = exec("nohup $command > /dev/null 2>&1 &");
if ($clearsigmask) {
pcntl_sigprocmask(SIG_SETMASK, $oldset);
}
unset($_gb);
}
/* unlink a file, if it exists */