diff options
Diffstat (limited to 'src/testcurl/perf_get_concurrent.c')
-rw-r--r-- | src/testcurl/perf_get_concurrent.c | 8 |
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); |