From 922c0e92283a7bf09b79cac4def19674025bb0eb Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Thu, 10 May 2012 23:38:31 +0200 Subject: host/proto, digital/ai/tools: stop simulation when a program crashes --- host/proto/popen_io.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host') 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): -- cgit v1.2.3