summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-02-20 12:16:40 +0000
committerChristian Grothoff <christian@grothoff.org>2016-02-20 12:16:40 +0000
commita6249094154d811189c1e25c9eb2001712ecb571 (patch)
tree9207d93a5d2355abd99359dae97555de47253cd6
parent6bda5e7fa7534122846e40e87517409d569490f5 (diff)
be more forceful about stopping test clients
-rw-r--r--src/testcurl/test_concurrent_stop.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/testcurl/test_concurrent_stop.c b/src/testcurl/test_concurrent_stop.c
index 17b4198c..88839ffd 100644
--- a/src/testcurl/test_concurrent_stop.c
+++ b/src/testcurl/test_concurrent_stop.c
@@ -1,6 +1,6 @@
/*
This file is part of libmicrohttpd
- Copyright (C) 2007, 2009, 2011, 2015 Christian Grothoff
+ Copyright (C) 2007, 2009, 2011, 2015, 2016 Christian Grothoff
libmicrohttpd is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -149,8 +149,12 @@ do_gets (int port)
_exit (0);
}
}
+ sleep (1);
for (j=0;j<PAR;j++)
+ {
+ kill (par[j], SIGKILL);
waitpid (par[j], NULL, 0);
+ }
_exit (0);
}
@@ -175,7 +179,10 @@ testMultithreadedGet (int port,
pid_t p;
d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG | poll_flag,
- port, NULL, NULL, &ahc_echo, "GET", MHD_OPTION_END);
+ port,
+ NULL, NULL,
+ &ahc_echo, "GET",
+ MHD_OPTION_END);
if (d == NULL)
return 16;
p = do_gets (port);