Skip to content

Commit e01e14e

Browse files
committed
Avoid bogus failures due to 'ps x | grep postmaster' detecting 'grep
postmaster' process.
1 parent f118c36 commit e01e14e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/ipcclean/ipcclean.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
#
3-
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.6 2000/11/11 22:59:47 petere Exp $
3+
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.7 2001/01/25 16:32:25 petere Exp $
44
#
55

66
CMDNAME=`basename $0`
@@ -43,7 +43,7 @@ if [ `uname` = 'Linux' ]; then
4343
ipcs_lpid=
4444
did_anything=
4545

46-
if ps x | grep -s 'postmaster' >/dev/null 2>&1 ; then
46+
if ps x | grep -s '[p]ostmaster' >/dev/null 2>&1 ; then
4747
echo "$CMDNAME: You still have a postmaster running." 1>&2
4848
exit 1
4949
fi

0 commit comments

Comments
 (0)