about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 07e870d..7569e63 100644
--- a/Makefile
+++ b/Makefile
@@ -25,8 +25,9 @@ test: libnodelay.so
                 strace -o test-client.out \
                                 nc -q 1 127.0.0.1 $(TEST_PORT) & \
                 echo $$! > test-client.pid
-        kill `cat test-client.pid` || sleep 1
-        kill `cat test-server.pid` || sleep 1
+        sleep 1
+        kill -9 `cat test-client.pid` || sleep 1
+        kill -9 `cat test-server.pid` || sleep 1
         $(RM) test-server.pid test-client.pid
         grep setsockopt.*TCP_NODELAY test-server.out
         grep setsockopt.*TCP_NODELAY test-client.out