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>__archive__
parent
d746dee833
commit
88907cc7f9
|
@ -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[] = {
|
||||
|
|
Loading…
Reference in New Issue