Skip to content
Snippets Groups Projects
Commit a35712a8 authored by Paul Fertser's avatar Paul Fertser Committed by Andreas Fritiofson
Browse files

server: shutdown command should lead to exit without evaluating the rest


Currently

openocd -c "echo a1; shutdown; echo a2"

outputs both "a1" and "a2" and only then shuts down. This patch fixes
it by making shutdown command throw an exception, so unless it's
caught the shutdown will behave as expected.

Change-Id: I764268b3a9046ff3e9717d04095ea0673f1d755a
Signed-off-by: default avatarPaul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2511


Tested-by: jenkins
Reviewed-by: default avatarUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Reviewed-by: default avatarSpencer Oliver <spen@spen-soft.co.uk>
parent 25e7a69e
No related branches found
No related tags found
No related merge requests found
......@@ -589,7 +589,7 @@ COMMAND_HANDLER(handle_shutdown_command)
shutdown_openocd = 1;
return ERROR_OK;
return ERROR_COMMAND_CLOSE_CONNECTION;
}
COMMAND_HANDLER(handle_poll_period_command)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment