From 2e826fb4ee4dca7fa66f6bb48f2a2bdbe333dce7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 12 Feb 2017 09:42:23 +0100 Subject: [PATCH] fix #4884 --- src/testcurl/perf_get_concurrent.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) return 512; } start_timer (); - while (ESRCH != pthread_kill (pid, 0)) + /* detach so that pthread_kill detection works on Solaris (#4884) */ + if (0 != pthread_detach(pid)) + { + MHD_stop_daemon(d); + return 512; + } + while (ESRCH != pthread_kill (pid, 0)) { max = 0; FD_ZERO (&rs);