فهرست منبع

fix restart.py

stanley-king 7 سال پیش
والد
کامیت
301063a354
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      restart.py

+ 3 - 3
restart.py

@@ -40,16 +40,16 @@ def restart(item):
     if name:
         cur_pid = os.getpid()
         pids = file_pid(name)
-        print "start restart " + name
+        print "restart " + name
         for pid in pids:
             try:
                 if cur_pid != pid:
                     os.kill(pid, signal.SIGKILL)
-                    print 'kill pid=', pid
+                    # print 'kill pid=', pid
                 else:
                     continue
             except OSError, e:
-                print "OSError no=", e.errno, " err=", e.strerror
+                # print "OSError no=", e.errno, " err=", e.strerror
                 pass
             except BaseException, be:
                 pass