killall and pgrep updates.

Set --ns $$ on commands.
This commit is contained in:
SimonFair
2024-10-10 19:18:54 +01:00
parent 3c007fa1d0
commit 80d567dfde
25 changed files with 38 additions and 38 deletions

View File

@@ -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) {