summaryrefslogtreecommitdiffstats
path: root/tests/torture.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-12-10 11:37:44 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-12-10 14:23:27 +0100
commit88aeb652d94f7f951ca9cd41322202f7f02e8acb (patch)
tree1aaad5e72a7ba1720607d9f5e8c0cc8ca99284c4 /tests/torture.c
parent0c4a784047a6a8eda69d31e6db49a5904836e2de (diff)
downloadsocket_wrapper-88aeb652d94f7f951ca9cd41322202f7f02e8acb.tar.gz
socket_wrapper-88aeb652d94f7f951ca9cd41322202f7f02e8acb.tar.xz
socket_wrapper-88aeb652d94f7f951ca9cd41322202f7f02e8acb.zip
torture_teardown_echo_srv
Diffstat (limited to 'tests/torture.c')
-rw-r--r--tests/torture.c9
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: