Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jadb committed Oct 7, 2014
1 parent ddf98c9 commit aad625d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Fresque.php
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ protected function exec($cmd)
protected function kill($signal, $pid)
{
$output = array();
$message = exec(sprintf('/bin/kill -%s %s 2>&1', $signal, $pid), $output, $code);
$message = exec(sprintf(($this->runtime['Default']['user'] !== $this->getProcessOwner() ? ('sudo -u '. escapeshellarg($this->runtime['Default']['user'])) . ' ' : "") . '/bin/kill -%s %s 2>&1', $signal, $pid), $output, $code);
return array('code' => $code, 'message' => $message);
}

Expand Down

0 comments on commit aad625d

Please sign in to comment.