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__
Øyvind Harboe 2010-01-08 15:30:10 +01:00
parent d746dee833
commit 88907cc7f9
1 changed files with 3 additions and 1 deletions

View File

@ -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[] = {