tool/run: cancel 'run_genode_until forever'

Enables the user to cancel run scripts in
'run_genode_until forever' via 'ctrl+c'.

fix #826
This commit is contained in:
Martin Stein 2013-08-08 12:29:46 +02:00 committed by Norman Feske
parent 4254cb04e1
commit 2e087bf4a9
1 changed files with 7 additions and 1 deletions

View File

@ -418,7 +418,13 @@ proc wait_for_output { wait_for_re timeout_value running_spawn_id } {
if {$wait_for_re == "forever"} {
set timeout -1
interact -i $running_spawn_id
interact {
\003 {
send_user "Expect: 'interact' received 'strg+c' and was cancelled\n";
exit
}
-i $running_spawn_id
}
} else {
set timeout $timeout_value
}