gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject svn commit: r202047 - /gump/branches/Gump3/webgump/bin/cleanup-semaphores
Date Mon, 27 Jun 2005 20:30:24 GMT
Author: leosimons
Date: Mon Jun 27 13:30:24 2005
New Revision: 202047

URL: http://svn.apache.org/viewcvs?rev=202047&view=rev
Log:
When running 'gump webgump debug' and pressing ctrl+c, mod_python will leave lots of mutexes
lying around. On linux, this gets rid of those.

Added:
    gump/branches/Gump3/webgump/bin/cleanup-semaphores   (with props)

Added: gump/branches/Gump3/webgump/bin/cleanup-semaphores
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/webgump/bin/cleanup-semaphores?rev=202047&view=auto
==============================================================================
--- gump/branches/Gump3/webgump/bin/cleanup-semaphores (added)
+++ gump/branches/Gump3/webgump/bin/cleanup-semaphores Mon Jun 27 13:30:24 2005
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+for i in `ipcs -s | grep $USER | sed -r -e 's/0x00000000 ([0-9]+).*/\1/g'`; do
+  ipcrm -s $i;
+done
+

Propchange: gump/branches/Gump3/webgump/bin/cleanup-semaphores
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message