mirror of
https://github.com/unraid/webgui.git
synced 2026-04-28 22:09:24 -05:00
killall and pgrep updates.
Set --ns $$ on commands.
This commit is contained in:
@@ -263,7 +263,7 @@ function urlencode_path($path) {
|
||||
return str_replace("%2F", "/", urlencode($path));
|
||||
}
|
||||
function pgrep($process_name, $escape_arg=true) {
|
||||
$pid = exec("pgrep ".($escape_arg?escapeshellarg($process_name):$process_name), $output, $retval);
|
||||
$pid = exec('pgrep --ns $$ '.($escape_arg?escapeshellarg($process_name):$process_name), $output, $retval);
|
||||
return $retval==0 ? $pid : false;
|
||||
}
|
||||
function is_block($path) {
|
||||
@@ -372,7 +372,7 @@ function my_rmdir($dirname) {
|
||||
'dataset' => $zfsdataset,
|
||||
'type' => $fstype,
|
||||
'cmd' => $cmdstr,
|
||||
'error' => $error,
|
||||
'error' =>
|
||||
];
|
||||
break;
|
||||
case "btrfs":
|
||||
|
||||
Reference in New Issue
Block a user