glasgow: actually terminate
This commit is contained in:
parent
28745b9dae
commit
c4f8e656b2
@ -32,10 +32,10 @@ index 35b8960..3f37b9f 100644
|
||||
+from .logic import LogicApplet
|
||||
diff --git a/software/glasgow/applet/logic.py b/software/glasgow/applet/logic.py
|
||||
new file mode 100644
|
||||
index 0000000..3af2843
|
||||
index 0000000..483e99e
|
||||
--- /dev/null
|
||||
+++ b/software/glasgow/applet/logic.py
|
||||
@@ -0,0 +1,94 @@
|
||||
@@ -0,0 +1,95 @@
|
||||
+import sys
|
||||
+import logging
|
||||
+import os
|
||||
@ -122,7 +122,8 @@ index 0000000..3af2843
|
||||
+ data = await iface.read(65536)
|
||||
+ output_stream.write(data)
|
||||
+ if output_stream.is_closing():
|
||||
+ raise SystemExit("glasgow: stdout closed")
|
||||
+ print("glasgow: stdout closed, terminating", file=sys.stderr)
|
||||
+ return
|
||||
+
|
||||
+# ------------------------------------------------------------------------------------------------
|
||||
+
|
||||
|
Loading…
Reference in New Issue
Block a user