SVN: wireless-net/trunk/sysconfig/interfaces/up.d/ppp/wlan-up.py

arekm arekm at pld-linux.org
Mon Nov 6 21:50:02 CET 2006


Author: arekm
Date: Mon Nov  6 21:50:02 2006
New Revision: 7943

Modified:
   wireless-net/trunk/sysconfig/interfaces/up.d/ppp/wlan-up.py
Log:
Better sleeping.

Modified: wireless-net/trunk/sysconfig/interfaces/up.d/ppp/wlan-up.py
==============================================================================
--- wireless-net/trunk/sysconfig/interfaces/up.d/ppp/wlan-up.py	(original)
+++ wireless-net/trunk/sysconfig/interfaces/up.d/ppp/wlan-up.py	Mon Nov  6 21:50:02 2006
@@ -29,7 +29,9 @@
             os.kill(pid, signal.SIGTERM)
         except OSError, e:
             pass
-        if pid_exists(pid):
+        for i in [1, 2, 3, 4, 5]:
+            if not pid_exists(pid):
+                break
             time.sleep(1)
         if pid_exists(pid):
             try:


More information about the pld-cvs-commit mailing list