Browse Source

Removed the EOFError thrown by fg

Siddhant Goel 17 năm trước cách đây
mục cha
commit
5f106967f3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/supervisor/supervisorctl.py

+ 1 - 1
src/supervisor/supervisorctl.py

@@ -947,7 +947,7 @@ class DefaultControllerPlugin(ControllerPluginBase):
                     a.kill()
                     return
                 continue
-        except KeyboardInterrupt:
+        except (KeyboardInterrupt, EOFError):
             a.kill()
             self.ctl.output('Exiting foreground')
         return