]> granicus.if.org Git - python/commitdiff
While I can't really test this thoroughly, Pat Knight and the Solaris
authorGuido van Rossum <guido@python.org>
Tue, 13 Apr 1999 14:32:12 +0000 (14:32 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 13 Apr 1999 14:32:12 +0000 (14:32 +0000)
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.

Python/thread_solaris.h

index e902245faadeabfccd6b96f7f717425f9defaf5b..5fc7850bcbd71d63a45ba74042b3af3426d31880 100644 (file)
@@ -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;