Clean up bad variable used in script. Still not sure it works under Linux.
authorBruce Momjian <bruce@momjian.us>
Sat, 10 Feb 2001 05:55:17 +0000 (05:55 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 10 Feb 2001 05:55:17 +0000 (05:55 +0000)
src/bin/ipcclean/ipcclean.sh

index b44095d8dc90954b4583c6c90f5b3a4016e25908..1636b8d4dcbb754e1c37bf13c6d8ec2ce3ad2dbb 100644 (file)
@@ -62,9 +62,9 @@ if [ `uname` = 'Linux' ]; then
         # Don't do anything if process still running.
         # (This check is conceptually phony, but it's
         # useful anyway in practice.)
-        ps hj$ipcs_pid >/dev/null 2>&1
+        ps hj$ipcs_lpid >/dev/null 2>&1
         if [ $? -eq 0 ]; then
-            echo "skipped. Process still exists (pid $ipcs_pid)."
+            echo "skipped. Process still exists (pid $ipcs_lpid)."
         else
             # try remove
             ipcrm shm $ipcs_id