This is an automated email from Gerrit.

Spencer Oliver (s...@spen-soft.co.uk) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/993

-- gerrit

commit cae17f127bfc0cbc51b9b166f10574cfdcd31033
Author: Spencer Oliver <s...@spen-soft.co.uk>
Date:   Thu Nov 22 11:49:52 2012 +0000

    gdb: fix correct shutdown when using pipes
    
    50d5441e2a615fb2c44b41a777e4373901f7a2e6 commit added a regression when
    using pipes with GDB, OpenOCD would appear to hang when exiting GDB.
    
    This fixes that behaviour so we shutdown correctly.
    
    Change-Id: I9b337c2bdd41b1966de1c7631118257afcbfa6bd
    Signed-off-by: Spencer Oliver <s...@spen-soft.co.uk>

diff --git a/src/server/server.c b/src/server/server.c
index 1499e73..8da82ec 100644
--- a/src/server/server.c
+++ b/src/server/server.c
@@ -465,9 +465,10 @@ int server_loop(struct command_context *command_context)
                                                retval = service->input(c);
                                                if (retval != ERROR_OK) {
                                                        struct connection *next 
= c->next;
-                                                       if (service->type == 
CONNECTION_PIPE) {
+                                                       if (service->type == 
CONNECTION_PIPE ||
+                                                                       
service->type == CONNECTION_STDINOUT) {
                                                                /* if 
connection uses a pipe then
-                                                                *shutdown 
openocd on error */
+                                                                * shutdown 
openocd on error */
                                                                
shutdown_openocd = 1;
                                                        }
                                                        
remove_connection(service, c);

-- 

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to