Browse Source

Processes needn't have pipes.

Chris McDonough 19 năm trước cách đây
mục cha
commit
f0367fbdf2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/supervisor/supervisord.py

+ 1 - 1
src/supervisor/supervisord.py

@@ -156,7 +156,7 @@ class Subprocess:
         self.logbuffer += output
 
     def get_pipe_drains(self):
-        if not self.pipes['stderr'] or not self.pipes['stdout']:
+        if not self.pipes:
             return []
 
         return ( [ self.pipes['stderr'], self.drain_stderr],