From d2331b4ebd289088b9436012f3bd185b9a140b2b Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 10 Feb 2001 06:12:15 +0000 Subject: [PATCH] More cleanup, again not sure it works. --- src/bin/ipcclean/ipcclean.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bin/ipcclean/ipcclean.sh b/src/bin/ipcclean/ipcclean.sh index 24d089b0b7..6e989ea732 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.8 2001/02/10 05:55:17 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.9 2001/02/10 06:12:15 momjian Exp $ # CMDNAME=`basename $0` @@ -39,7 +39,6 @@ EffectiveUser=`id -n -u 2>/dev/null || whoami 2>/dev/null` # if [ `uname` = 'Linux' ]; then ipcs_id= - ipcs_cpid= ipcs_lpid= did_anything= @@ -49,7 +48,8 @@ if [ `uname` = 'Linux' ]; then fi # shared memory - for val in `ipcs -m -p | grep '^[0-9]' | awk '{printf "%s %s\n", $1, $3, $4}'`; do + for val in `ipcs -m -p | grep '^[0-9]' | awk '{printf "%s %s\n", $1, $3, $4}'` + do if [ -z "$ipcs_id" ]; then ipcs_id=$val # Note: We can do -n here, because we know the platform. @@ -75,7 +75,6 @@ if [ `uname` = 'Linux' ]; then fi fi ipcs_id= - ipcs_cpid= ipcs_lpid= done -- 2.40.0