瀏覽代碼

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()
                     a.kill()
                     return
                     return
                 continue
                 continue
-        except KeyboardInterrupt:
+        except (KeyboardInterrupt, EOFError):
             a.kill()
             a.kill()
             self.ctl.output('Exiting foreground')
             self.ctl.output('Exiting foreground')
         return
         return