From 6b03868e2c1c4c4c260eef68eb4f7170ea40a82f Mon Sep 17 00:00:00 2001 From: dms Date: Tue, 15 Aug 2000 11:24:07 +0000 Subject: [PATCH] ircCheck(): added full path for ipcs,ipcrm git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@43 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/IRC/Schedulers.pl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/blootbot/src/IRC/Schedulers.pl b/blootbot/src/IRC/Schedulers.pl index ac0c82c..13955bd 100644 --- a/blootbot/src/IRC/Schedulers.pl +++ b/blootbot/src/IRC/Schedulers.pl @@ -398,8 +398,15 @@ sub ircCheck { &FIXME("ircCheck: current channels * 2 <= config channels. FIXME."); } + my @ipcs; + if ( -x "/usr/bin/ipcs") { + @ipcs = `/usr/bin/ipcs`; + } else { + &WARN("ircCheck: no 'ipcs' binary."); + } + # shmid stale remove. - foreach (`ipcs`) { + foreach (@ipcs) { chop; # key, shmid, owner, perms, bytes, nattch @@ -409,7 +416,7 @@ sub ircCheck { next unless ($shmid != $shm and $size == 2000); &status("SHM: nuking shmid $shmid"); - system("ipcrm shm $shmid >/dev/null"); + system("/usr/bin/ipcrm shm $shmid >/dev/null"); } if (!$conn->connected and time - $msgtime > 3600) { -- 2.39.5