summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-04-13 14:32:12 (GMT)
committerGuido van Rossum <guido@python.org>1999-04-13 14:32:12 (GMT)
commit495894ee666563f0753f12b60e23eaeb50ec16fb (patch)
tree0a9e17ce1631f85a5be1a1b366446913151b2150 /Python
parent7cf904736e7b0a650a787cb98d91ad417e68f492 (diff)
downloadcpython-495894ee666563f0753f12b60e23eaeb50ec16fb.zip
cpython-495894ee666563f0753f12b60e23eaeb50ec16fb.tar.gz
cpython-495894ee666563f0753f12b60e23eaeb50ec16fb.tar.bz2
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.
Diffstat (limited to 'Python')
-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;