Преглед изворни кода

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