فهرست منبع

Close all file handles on SIGHUP (fixes #1768)

This was originally fixed in 803655b79ccb0403f47cfcd2cfa5a6ed66301cbc
but was broken later in 118b300fcad4e6ffb0178fc00cf9fe26075101a5.
Brodie Rao 11 سال پیش
والد
کامیت
25379e7818
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      celery/apps/worker.py

+ 3 - 0
celery/apps/worker.py

@@ -315,6 +315,9 @@ else:  # pragma: no cover
 
 
 def _reload_current_worker():
+    platforms.close_open_fds([
+        sys.__stdin__, sys.__stdout__, sys.__stderr__,
+    ])
     os.execv(sys.executable, [sys.executable] + sys.argv)