Browse Source

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>
tags/v0.4.0-rc2
Øyvind Harboe 12 years ago
parent
commit
88907cc7f9
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/server/server.c

+ 3
- 1
src/server/server.c 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[] = {


Loading…
Cancel
Save