diff options
author | bala <balanatarajan@users.noreply.github.com> | 2002-12-12 04:10:47 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2002-12-12 04:10:47 +0000 |
commit | 59d43ae860577a832d2a4ca16eb729ca4622b500 (patch) | |
tree | 9664d8a0fcb72686cd2b3160ac5219d3ac90bd82 /bin | |
parent | bdd24a9d18b78270491b60512570df245bff3e2e (diff) | |
download | ATCD-59d43ae860577a832d2a4ca16eb729ca4622b500.tar.gz |
ChangeLogTag: Wed Dec 11 23:11:09 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/clean_sems.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/clean_sems.sh b/bin/clean_sems.sh new file mode 100755 index 00000000000..a20f520bc54 --- /dev/null +++ b/bin/clean_sems.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +if test "$OSTYPE" = "solaris"; then + semids=`ipcs | grep $USER | awk '{ print ($2) }'` + for p in $semids + do ipcrm -s $p + done +else + # Linux/GNU + ipcs -a | grep $USER | awk '{ print ($2) }' | xargs ipcrm sem; +fi + |