From: Øyvind Harboe Date: Fri, 8 Jan 2010 14:30:10 +0000 (+0100) Subject: shutdown: more graceful shutdown X-Git-Tag: v0.4.0-rc2~105 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=88907cc7f941ce85f0dc35ed3dbc4d2dbc87cef7;p=openocd shutdown: more graceful shutdown Shutdown is not an error condition, do not return error from main. Signed-off-by: Øyvind Harboe --- diff --git a/src/server/server.c b/src/server/server.c index f762704d..173beb86 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -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[] = {