diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/torture.c | 9 |
1 files changed, 5 insertions, 4 deletions
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: |
