Skip to content

Commit 495894e

Browse files
committed
While I can't really test this thoroughly, Pat Knight and the Solaris
man pages suggest that the proper thing to do is to add THR_NEW_LWP to the flags on thr_create(), and that there really isn't a downside, so I'll do that.
1 parent 7cf9047 commit 495894e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/thread_solaris.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ int PyThread_start_new_thread _P2(func, void (*func) _P((void *)), arg, void *ar
7777
funcarg = (struct func_arg *) malloc(sizeof(struct func_arg));
7878
funcarg->func = func;
7979
funcarg->arg = arg;
80-
if (thr_create(0, 0, new_func, funcarg, THR_DETACHED, 0)) {
80+
if (thr_create(0, 0, new_func, funcarg,
81+
THR_DETACHED | THR_NEW_LWP, 0)) {
8182
perror("thr_create");
8283
free((void *) funcarg);
8384
success = -1;

0 commit comments

Comments
 (0)