This is an automated email from Gerrit.

Mateusz Manowiecki (segmentat...@fault.pl) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/2443

-- gerrit

commit ea4f5da5b31270543be7ad8719b86b8d46ec6308
Author: Mateusz Manowiecki <segmentat...@fault.pl>
Date:   Mon Jan 5 16:40:16 2015 +0100

    Added system signal handling to Linux version
    
    Change-Id: I15f559bc1122a408c3fb9338ba55c16fab3187e1
    Signed-off-by: Mateusz Manowiecki <segmentat...@fault.pl>

diff --git a/src/server/server.c b/src/server/server.c
index 7fbceb1..f4dd582 100644
--- a/src/server/server.c
+++ b/src/server/server.c
@@ -505,12 +505,12 @@ BOOL WINAPI ControlHandler(DWORD dwCtrlType)
        shutdown_openocd = 1;
        return TRUE;
 }
+#endif
 
 void sig_handler(int sig)
 {
        shutdown_openocd = 1;
 }
-#endif
 
 int server_preinit(void)
 {
@@ -532,11 +532,11 @@ int server_preinit(void)
        /* register ctrl-c handler */
        SetConsoleCtrlHandler(ControlHandler, TRUE);
 
+       signal(SIGBREAK, sig_handler);
+#endif
        signal(SIGINT, sig_handler);
        signal(SIGTERM, sig_handler);
-       signal(SIGBREAK, sig_handler);
        signal(SIGABRT, sig_handler);
-#endif
 
        return ERROR_OK;
 }

-- 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to