mirror of
https://github.com/unraid/webgui.git
synced 2026-02-27 04:41:20 -06:00
killall and pgrep updates.
Set --ns $$ on commands.
This commit is contained in:
@@ -15,7 +15,7 @@ $docroot ??= ($_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp');
|
||||
require_once "$docroot/webGui/include/Secure.php";
|
||||
|
||||
function pgrep($proc) {
|
||||
return exec("pgrep -f $proc");
|
||||
return exec('pgrep --ns $$ -f '."$proc");
|
||||
}
|
||||
|
||||
if (isset($_POST['kill']) && $_POST['kill'] > 1) {
|
||||
|
||||
Reference in New Issue
Block a user