浏览代码

Removed the EOFError thrown by fg

Siddhant Goel 17 年之前
父节点
当前提交
5f106967f3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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