浏览代码

Prevent children from receiving signals sent to their parent.

Chris McDonough 19 年之前
父节点
当前提交
80a6a121b7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/supervisor/supervisord.py

+ 1 - 0
src/supervisor/supervisord.py

@@ -282,6 +282,7 @@ class Subprocess:
         else:
             # Child
             try:
+                os.setsid()
                 os.dup2(child_stdin, 0)
                 os.dup2(child_stdout, 1)
                 os.dup2(child_stderr, 2)