commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 03/05: grc: catch EOFError on fg exit


From: git
Subject: [Commit-gnuradio] [gnuradio] 03/05: grc: catch EOFError on fg exit
Date: Mon, 3 Nov 2014 18:47:20 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 64c74d6b7589ed80dd27724cc5eb35db5be498e0
Author: Sebastian Koslowski <address@hidden>
Date:   Sun Nov 2 19:24:32 2014 +0100

    grc: catch EOFError on fg exit
---
 grc/python/flow_graph.tmpl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl
index ace217c..bee9c68 100644
--- a/grc/python/flow_graph.tmpl
+++ b/grc/python/flow_graph.tmpl
@@ -354,7 +354,10 @@ if __name__ == '__main__':
         #for $m in $monitors
     (tb.$m.get_id()).start()
         #end for
-    raw_input('Press Enter to quit: ')
+    try:
+        raw_input('Press Enter to quit: ')
+    except EOFError:
+        pass
     tb.stop()
         #elif $run_options == 'run'
             #if $flow_graph.get_option('max_nouts')



reply via email to

[Prev in Thread] Current Thread [Next in Thread]