diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-04-19 07:44:52 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-04-19 07:44:52 (GMT) |
commit | 910ae6283a2e715bd13962bd8e4da71c4fd3627d (patch) | |
tree | 2a23cfce7b1bc88ccc6bf1f2a12bece82a61ec09 /Python/thread_solaris.h | |
parent | 1e91d8eb030656386ef3a07e8a516683bea85610 (diff) | |
download | cpython-910ae6283a2e715bd13962bd8e4da71c4fd3627d.zip cpython-910ae6283a2e715bd13962bd8e4da71c4fd3627d.tar.gz cpython-910ae6283a2e715bd13962bd8e4da71c4fd3627d.tar.bz2 |
Patch #716969: Detect thread creation failure. Will backport to 2.2.
Diffstat (limited to 'Python/thread_solaris.h')
-rw-r--r-- | Python/thread_solaris.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/thread_solaris.h b/Python/thread_solaris.h index d3512d4..ff3e6f3 100644 --- a/Python/thread_solaris.h +++ b/Python/thread_solaris.h @@ -40,8 +40,6 @@ PyThread_start_new_thread(void (*func)(void *), void *arg) { thread_t tid; struct func_arg *funcarg; - int success = 0; /* init not needed when SOLARIS_THREADS and */ - /* C_THREADS implemented properly */ dprintf(("PyThread_start_new_thread called\n")); if (!initialized) @@ -53,7 +51,7 @@ PyThread_start_new_thread(void (*func)(void *), void *arg) THR_DETACHED | THR_NEW_LWP, &tid)) { perror("thr_create"); free((void *) funcarg); - success = -1; + return -1; } return tid; } |