瀏覽代碼

Thanks to Dave Peticolas, reload when supervisord is in the background no longer crashes.

Chris McDonough 17 年之前
父節點
當前提交
1bdecb8331
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/supervisor/supervisord.py

+ 1 - 1
src/supervisor/supervisord.py

@@ -103,7 +103,7 @@ class Supervisor:
             self.options.process_environment()
             self.options.openhttpservers(self)
             self.options.setsignals()
-            if not self.options.nodaemon:
+            if (not self.options.nodaemon) and self.options.first:
                 self.options.daemonize()
             # writing pid file needs to come *after* daemonizing or pid
             # will be wrong