From 88907cc7f941ce85f0dc35ed3dbc4d2dbc87cef7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Harboe?= Date: Fri, 8 Jan 2010 15:30:10 +0100 Subject: [PATCH] shutdown: more graceful shutdown MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Shutdown is not an error condition, do not return error from main. Signed-off-by: Øyvind Harboe --- src/server/server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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[] = { -- 2.39.5