You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by bo...@apache.org on 2008/01/16 06:06:31 UTC
svn commit: r612356 -
/gump/trunk/python/gump/actor/mvnrepoproxy/proxycontrol.py
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)