X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fserver%2Fserver.c;h=8da82ec88969ba038434763008be7e1bf339804e;hp=1499e73875b94612c0bac5ffc5520d5c2038a231;hb=0466ee7e4a54d1415dea9a8fbe9b361b04895db5;hpb=c3e537a340307f9f94b5b112ed0092b87b8cb640 diff --git a/src/server/server.c b/src/server/server.c index 1499e73875..8da82ec889 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);