瀏覽代碼

Use the same except clause in signal() as in kill()

Mike Naberezny 10 年之前
父節點
當前提交
2e1b98319f
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      supervisor/process.py

+ 1 - 3
supervisor/process.py

@@ -463,7 +463,7 @@ class Subprocess:
 
         try:
             options.kill(self.pid, sig)
-        except Exception:
+        except:
             io = StringIO.StringIO()
             traceback.print_exc(file=io)
             tb = io.getvalue()
@@ -476,8 +476,6 @@ class Subprocess:
 
         return None
 
-
-
     def finish(self, pid, sts):
         """ The process was reaped and we need to report and manage its state
         """