diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-01-08 15:30:10 +0100 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-01-11 08:13:17 +0100 |
commit | 88907cc7f941ce85f0dc35ed3dbc4d2dbc87cef7 (patch) | |
tree | 6199acfbe7b61827d4993496b90a37605f0c7a4d /src/server | |
parent | d746dee833ef4774adcee6a33c97f8039a5bd744 (diff) | |
download | openocd_libswd-88907cc7f941ce85f0dc35ed3dbc4d2dbc87cef7.tar.gz openocd_libswd-88907cc7f941ce85f0dc35ed3dbc4d2dbc87cef7.tar.bz2 openocd_libswd-88907cc7f941ce85f0dc35ed3dbc4d2dbc87cef7.tar.xz openocd_libswd-88907cc7f941ce85f0dc35ed3dbc4d2dbc87cef7.zip |
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>
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/server.c | 4 |
1 files changed, 3 insertions, 1 deletions
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[] = { |