aboutsummaryrefslogtreecommitdiff
path: root/src/server/server.h
diff options
context:
space:
mode:
authorMateusz Manowiecki <segmentation@fault.pl>2015-01-05 16:40:16 +0100
committerPaul Fertser <fercerpav@gmail.com>2015-03-09 06:25:45 +0000
commit5087a9554851cd7e1d33d13deb0f5d35b89369f6 (patch)
tree5b97ba8d8257778bd12f76a00c7245cc56ca18f7 /src/server/server.h
parentef0fa97a717e7f1d7af276f7d67897803c505d35 (diff)
downloadriscv-openocd-5087a9554851cd7e1d33d13deb0f5d35b89369f6.zip
riscv-openocd-5087a9554851cd7e1d33d13deb0f5d35b89369f6.tar.gz
riscv-openocd-5087a9554851cd7e1d33d13deb0f5d35b89369f6.tar.bz2
Added system signal handling to Linux version
(with http://www.cons.org/cracauer/sigint.html in mind) Change-Id: I15f559bc1122a408c3fb9338ba55c16fab3187e1 Signed-off-by: Mateusz Manowiecki <segmentation@fault.pl> Reviewed-on: http://openocd.zylin.com/2443 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'src/server/server.h')
-rw-r--r--src/server/server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/server.h b/src/server/server.h
index b444939..34c870a 100644
--- a/src/server/server.h
+++ b/src/server/server.h
@@ -78,6 +78,7 @@ int add_service(char *name, const char *port,
int server_preinit(void);
int server_init(struct command_context *cmd_ctx);
int server_quit(void);
+void exit_on_signal(int);
int server_loop(struct command_context *command_context);