Explorar o código

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

Chris McDonough %!s(int64=17) %!d(string=hai) anos
pai
achega
1bdecb8331
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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