diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2014-11-02 19:24:32 +0100 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2014-11-02 19:24:32 +0100 |
commit | 64c74d6b7589ed80dd27724cc5eb35db5be498e0 (patch) | |
tree | 04b28ef7139dedc0ee72ecd3a6f460eb8495cc9a /grc/python | |
parent | 8d62df788b01c76e47806f04dc6f064acda334ef (diff) |
grc: catch EOFError on fg exit
Diffstat (limited to 'grc/python')
-rw-r--r-- | grc/python/flow_graph.tmpl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl index ace217c967..bee9c68af5 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') |