commit 2e826fb4ee4dca7fa66f6bb48f2a2bdbe333dce7 parent 4cd33c30b0d5000dc84280c8ecdc3f49f7b251a7 Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 12 Feb 2017 09:42:23 +0100 fix #4884 Diffstat:
| M | 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 @@ -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);