2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

gui/applets: fix handling of process creation failure

This commit is contained in:
Sebastien Bourdeauducq 2016-09-06 23:01:04 +08:00
parent 996dfcafc6
commit f6b5d6d20f

View File

@ -130,6 +130,7 @@ class _AppletDock(QDockWidgetCloseDetect):
except:
logger.warning("Applet %s failed to start", self.applet_name,
exc_info=True)
return
if stdin is not None:
self.ipc.process.stdin.write(stdin.encode())
self.ipc.process.stdin.write_eof()