mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 00:02:04 -04:00
Clean up bad variable used in script. Still not sure it works under Linux.
This commit is contained in:
parent
fd40942fd8
commit
6996a77246
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.7 2001/01/25 16:32:25 petere Exp $
|
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.8 2001/02/10 05:55:17 momjian Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
CMDNAME=`basename $0`
|
CMDNAME=`basename $0`
|
||||||
@ -62,9 +62,9 @@ if [ `uname` = 'Linux' ]; then
|
|||||||
# Don't do anything if process still running.
|
# Don't do anything if process still running.
|
||||||
# (This check is conceptually phony, but it's
|
# (This check is conceptually phony, but it's
|
||||||
# useful anyway in practice.)
|
# useful anyway in practice.)
|
||||||
ps hj$ipcs_pid >/dev/null 2>&1
|
ps hj$ipcs_lpid >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "skipped. Process still exists (pid $ipcs_pid)."
|
echo "skipped. Process still exists (pid $ipcs_lpid)."
|
||||||
else
|
else
|
||||||
# try remove
|
# try remove
|
||||||
ipcrm shm $ipcs_id
|
ipcrm shm $ipcs_id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user