From 6415d0f683dbe5f20d4d00c74bf75a795753f444 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 1 May 2020 17:39:50 +0200 Subject: tools: Stop oping client cleanly on bad write On a bad write, the writer thread would shutdown, leaving the client hanging. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/tools/oping/oping_client.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tools') diff --git a/src/tools/oping/oping_client.c b/src/tools/oping/oping_client.c index d0255b7c..35f49aa2 100644 --- a/src/tools/oping/oping_client.c +++ b/src/tools/oping/oping_client.c @@ -179,6 +179,7 @@ void * writer(void * o) printf("Failed to send packet.\n"); flow_dealloc(*fdp); free(buf); + stop = true; return (void *) -1; } } -- cgit v1.2.3