Mercurial > cpython-lru_cache-weakref
diff Python/thread_solaris.h @ 28687:40d287c3d906 legacy-trunk
Patch #716969: Detect thread creation failure. Will backport to 2.2.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 19 Apr 2003 07:44:52 +0000 |
| parents | 8b116a8449bd |
| children | e38335d4df91 df5719c298db |
line wrap: on
line diff
--- a/Python/thread_solaris.h Sat Apr 19 04:00:56 2003 +0000 +++ b/Python/thread_solaris.h Sat Apr 19 07:44:52 2003 +0000 @@ -40,8 +40,6 @@ { 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 @@ THR_DETACHED | THR_NEW_LWP, &tid)) { perror("thr_create"); free((void *) funcarg); - success = -1; + return -1; } return tid; }
