summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLogs/ChangeLog-03a6
-rwxr-xr-xbin/clean_sems.sh12
3 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e0fd39a7a34..aea4fd16986 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Dec 11 23:11:09 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
+
+ * bin/clean_sems.sh: A shell script to remove
+ semaphores. Integrating the script that Ossama used to the
+ daily build system.
+
Wed Dec 11 21:05:49 2002 Steve Huston <shuston@riverace.com>
* ace/Message_Block_T.cpp:
diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a
index e0fd39a7a34..aea4fd16986 100644
--- a/ChangeLogs/ChangeLog-03a
+++ b/ChangeLogs/ChangeLog-03a
@@ -1,3 +1,9 @@
+Wed Dec 11 23:11:09 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
+
+ * bin/clean_sems.sh: A shell script to remove
+ semaphores. Integrating the script that Ossama used to the
+ daily build system.
+
Wed Dec 11 21:05:49 2002 Steve Huston <shuston@riverace.com>
* ace/Message_Block_T.cpp:
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
+