This is an automated email from Gerrit. Paul Fertser ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2511
-- gerrit commit 1bcd6df4bd9d1b691dcdbe6d592112cddb42497d Author: Paul Fertser <[email protected]> Date: Tue Jan 27 21:10:18 2015 +0300 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: Paul Fertser <[email protected]> diff --git a/src/server/server.c b/src/server/server.c index 7fbceb1..9f9f2f1 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -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) -- ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
