mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
shutdown: more graceful shutdown
Shutdown is not an error condition, do not return error from main. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
@@ -563,9 +563,11 @@ int server_quit(void)
|
||||
/* tell the server we want to shut down */
|
||||
COMMAND_HANDLER(handle_shutdown_command)
|
||||
{
|
||||
LOG_USER("shutdown command invoked");
|
||||
|
||||
shutdown_openocd = 1;
|
||||
|
||||
return ERROR_COMMAND_CLOSE_CONNECTION;
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static const struct command_registration server_command_handlers[] = {
|
||||
|
||||
Reference in New Issue
Block a user