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

arekm arekm at pld-linux.org
Tue Nov 7 09:46:33 CET 2006


Author: arekm
Date: Tue Nov  7 09:46:32 2006
New Revision: 7945

Modified:
   wireless-net/trunk/sysconfig/interfaces/up.d/ppp/wlan-up.py
Log:
Log more, sleep longer.

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	Tue Nov  7 09:46:32 2006
@@ -30,7 +30,7 @@
         except OSError, e:
             fl.write("%s: unable to SIGTERM: %s [pid=%d]\n" % (time.asctime(time.gmtime()), e, pid))
             pass
-        for i in [1, 2, 3, 4, 5]:
+        for i in [1, 2, 3, 4, 5, 6, 7, 8]:
             if not pid_exists(pid):
                 break
             time.sleep(1)
@@ -46,6 +46,8 @@
             killed_msg = "NOT killed"
         fl.write("%s: killing result: %s [pid=%d]\n" % (time.asctime(time.gmtime()), killed_msg, pid))
         return killed
+    else:
+        fl.write("%s: unable to kill: wrong pid or process doesn't exist [pid=%d]\n" % (time.asctime(time.gmtime()), pid))
     return False
 
 config = ConfigParser.ConfigParser()


More information about the pld-cvs-commit mailing list