aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-12 09:42:23 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-12 09:42:23 +0100
commit2e826fb4ee4dca7fa66f6bb48f2a2bdbe333dce7 (patch)
tree959e5bc73b11a5f476c69644514bd462ef0295c5
parent4cd33c30b0d5000dc84280c8ecdc3f49f7b251a7 (diff)
downloadlibmicrohttpd-2e826fb4ee4dca7fa66f6bb48f2a2bdbe333dce7.tar.gz
libmicrohttpd-2e826fb4ee4dca7fa66f6bb48f2a2bdbe333dce7.zip
fix #4884
-rw-r--r--src/testcurl/perf_get_concurrent.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testcurl/perf_get_concurrent.c b/src/testcurl/perf_get_concurrent.c
index d75feb75..d44f6574 100644
--- a/src/testcurl/perf_get_concurrent.c
+++ b/src/testcurl/perf_get_concurrent.c
@@ -338,7 +338,13 @@ testExternalGet (int port)
338 return 512; 338 return 512;
339 } 339 }
340 start_timer (); 340 start_timer ();
341 while (ESRCH != pthread_kill (pid, 0)) 341 /* detach so that pthread_kill detection works on Solaris (#4884) */
342 if (0 != pthread_detach(pid))
343 {
344 MHD_stop_daemon(d);
345 return 512;
346 }
347 while (ESRCH != pthread_kill (pid, 0))
342 { 348 {
343 max = 0; 349 max = 0;
344 FD_ZERO (&rs); 350 FD_ZERO (&rs);