Commit d2331b4e authored by Bruce Momjian's avatar Bruce Momjian

More cleanup, again not sure it works.

parent 6996a772
#!/bin/sh #!/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` CMDNAME=`basename $0`
...@@ -39,7 +39,6 @@ EffectiveUser=`id -n -u 2>/dev/null || whoami 2>/dev/null` ...@@ -39,7 +39,6 @@ EffectiveUser=`id -n -u 2>/dev/null || whoami 2>/dev/null`
# #
if [ `uname` = 'Linux' ]; then if [ `uname` = 'Linux' ]; then
ipcs_id= ipcs_id=
ipcs_cpid=
ipcs_lpid= ipcs_lpid=
did_anything= did_anything=
...@@ -49,7 +48,8 @@ if [ `uname` = 'Linux' ]; then ...@@ -49,7 +48,8 @@ if [ `uname` = 'Linux' ]; then
fi fi
# shared memory # 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 if [ -z "$ipcs_id" ]; then
ipcs_id=$val ipcs_id=$val
# Note: We can do -n here, because we know the platform. # Note: We can do -n here, because we know the platform.
...@@ -75,7 +75,6 @@ if [ `uname` = 'Linux' ]; then ...@@ -75,7 +75,6 @@ if [ `uname` = 'Linux' ]; then
fi fi
fi fi
ipcs_id= ipcs_id=
ipcs_cpid=
ipcs_lpid= ipcs_lpid=
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment