summaryrefslogtreecommitdiff
path: root/src/bin/ipcclean
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ipcclean')
-rw-r--r--src/bin/ipcclean/ipcclean.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/bin/ipcclean/ipcclean.sh b/src/bin/ipcclean/ipcclean.sh
index db3f003b0c..881391e641 100644
--- a/src/bin/ipcclean/ipcclean.sh
+++ b/src/bin/ipcclean/ipcclean.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.10 2001/02/10 10:27:28 petere Exp $
+# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.11 2001/05/24 15:53:33 momjian Exp $
#
CMDNAME=`basename $0`
@@ -33,7 +33,17 @@ EffectiveUser=`id -n -u 2>/dev/null || whoami 2>/dev/null`
# List of platform-specific hacks
# Feel free to add yours here.
#-----------------------------------
-
+#
+# This is QNX 4.25
+#
+if [ `uname` = 'QNX' ]; then
+ if ps -eA | grep -s '[p]ostmaster' >/dev/null 2>&1 ; then
+ echo "$CMDNAME: You still have a postmaster running." 1>&2
+ exit 1
+ fi
+ rm -f /dev/shmem/PgS*
+ exit $?
+fi
#
# This is based on RedHat 5.2.
#