Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d2331b4

Browse files
committed
More cleanup, again not sure it works.
1 parent 6996a77 commit d2331b4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/bin/ipcclean/ipcclean.sh

Lines changed: 3 additions & 4 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.8 2001/02/10 05:55:17 momjian Exp $
3+
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.9 2001/02/10 06:12:15 momjian Exp $
44
#
55

66
CMDNAME=`basename $0`
@@ -39,7 +39,6 @@ EffectiveUser=`id -n -u 2>/dev/null || whoami 2>/dev/null`
3939
#
4040
if [ `uname` = 'Linux' ]; then
4141
ipcs_id=
42-
ipcs_cpid=
4342
ipcs_lpid=
4443
did_anything=
4544

@@ -49,7 +48,8 @@ if [ `uname` = 'Linux' ]; then
4948
fi
5049

5150
# shared memory
52-
for val in `ipcs -m -p | grep '^[0-9]' | awk '{printf "%s %s\n", $1, $3, $4}'`; do
51+
for val in `ipcs -m -p | grep '^[0-9]' | awk '{printf "%s %s\n", $1, $3, $4}'`
52+
do
5353
if [ -z "$ipcs_id" ]; then
5454
ipcs_id=$val
5555
# Note: We can do -n here, because we know the platform.
@@ -75,7 +75,6 @@ if [ `uname` = 'Linux' ]; then
7575
fi
7676
fi
7777
ipcs_id=
78-
ipcs_cpid=
7978
ipcs_lpid=
8079
done
8180

0 commit comments

Comments
 (0)