浏览代码

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:
     if name:
         cur_pid = os.getpid()
         cur_pid = os.getpid()
         pids = file_pid(name)
         pids = file_pid(name)
-        print "start restart " + name
+        print "restart " + name
         for pid in pids:
         for pid in pids:
             try:
             try:
                 if cur_pid != pid:
                 if cur_pid != pid:
                     os.kill(pid, signal.SIGKILL)
                     os.kill(pid, signal.SIGKILL)
-                    print 'kill pid=', pid
+                    # print 'kill pid=', pid
                 else:
                 else:
                     continue
                     continue
             except OSError, e:
             except OSError, e:
-                print "OSError no=", e.errno, " err=", e.strerror
+                # print "OSError no=", e.errno, " err=", e.strerror
                 pass
                 pass
             except BaseException, be:
             except BaseException, be:
                 pass
                 pass