summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/thread_solaris.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/thread_solaris.h b/Python/thread_solaris.h
index e902245..5fc7850 100644
--- a/Python/thread_solaris.h
+++ b/Python/thread_solaris.h
@@ -77,7 +77,8 @@ int PyThread_start_new_thread _P2(func, void (*func) _P((void *)), arg, void *ar
funcarg = (struct func_arg *) malloc(sizeof(struct func_arg));
funcarg->func = func;
funcarg->arg = arg;
- if (thr_create(0, 0, new_func, funcarg, THR_DETACHED, 0)) {
+ if (thr_create(0, 0, new_func, funcarg,
+ THR_DETACHED | THR_NEW_LWP, 0)) {
perror("thr_create");
free((void *) funcarg);
success = -1;