summaryrefslogtreecommitdiff
path: root/host/proto
diff options
context:
space:
mode:
authorNicolas Schodet2012-05-10 23:38:31 +0200
committerNicolas Schodet2012-05-11 00:47:24 +0200
commit922c0e92283a7bf09b79cac4def19674025bb0eb (patch)
treefe1f2f5d7b0780a8e6040539f28514f639038361 /host/proto
parent5602ec143eb0afedda7e0809ddbeca18552b7c69 (diff)
host/proto, digital/ai/tools: stop simulation when a program crashes
Diffstat (limited to 'host/proto')
-rw-r--r--host/proto/popen_io.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/proto/popen_io.py b/host/proto/popen_io.py
index 0f582802..a9051cc7 100644
--- a/host/proto/popen_io.py
+++ b/host/proto/popen_io.py
@@ -37,6 +37,8 @@ class PopenIO:
def read (self, *args):
buf = self.fin.read (*args).replace ('\n', '\r')
+ if not buf:
+ raise EOFError
return buf
def write (self, *args):