gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r612356 - /gump/trunk/python/gump/actor/mvnrepoproxy/proxycontrol.py
Date Wed, 16 Jan 2008 05:06:31 GMT
Author: bodewig
Date: Tue Jan 15 21:06:30 2008
New Revision: 612356

URL: http://svn.apache.org/viewvc?rev=612356&view=rev
Log:
sleep after stopping mvn proxy to ensure it is terminated before the Python process finishes

Modified:
    gump/trunk/python/gump/actor/mvnrepoproxy/proxycontrol.py

Modified: gump/trunk/python/gump/actor/mvnrepoproxy/proxycontrol.py
URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/actor/mvnrepoproxy/proxycontrol.py?rev=612356&r1=612355&r2=612356&view=diff
==============================================================================
--- gump/trunk/python/gump/actor/mvnrepoproxy/proxycontrol.py (original)
+++ gump/trunk/python/gump/actor/mvnrepoproxy/proxycontrol.py Tue Jan 15 21:06:30 2008
@@ -18,6 +18,7 @@
 import os
 import os.path
 import sys
+import time
 import urllib
 
 from gump import log
@@ -96,5 +97,7 @@
         log.info('Stopping mvn repository proxy')
         try:
             urllib.urlopen(self.proxyURL + 'stop', urllib.urlencode({}))
+            # allow Java process to stop before the Python process terminates
+            time.sleep(5)
         except:
             log.error('--- Failed to stop proxy', exc_info=1)



Mime
View raw message