From 88aeb652d94f7f951ca9cd41322202f7f02e8acb Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 10 Dec 2013 11:37:44 +0100 Subject: torture_teardown_echo_srv --- tests/torture.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/torture.c b/tests/torture.c index 39d813f..de09ab8 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -147,11 +147,12 @@ void torture_teardown_echo_srv(void **state) pid = (pid_t)(tmp & 0xFFFF); /* Make sure the daemon goes away! */ - rc = kill(pid, SIGTERM); - if (rc < 0) { + kill(pid, SIGTERM); + + kill(pid, 0); + if (rc == 0) { fprintf(stderr, - "Failed to kill the echo server: %s", - strerror(errno)); + "WARNING the echo server is still running!\n"); } done: -- cgit