diff options
| author | Miguel Sofer <miguel.sofer@gmail.com> | 2008-01-11 10:54:48 (GMT) |
|---|---|---|
| committer | Miguel Sofer <miguel.sofer@gmail.com> | 2008-01-11 10:54:48 (GMT) |
| commit | 6f051abda89c146f316c93593c0678af010eda2e (patch) | |
| tree | e5272edc786b794af1622d65133492b3e113f7df /unix/tclUnixThrd.c | |
| parent | 545096712d58bbb2113be4166927039f02253529 (diff) | |
| download | tcl-6f051abda89c146f316c93593c0678af010eda2e.zip tcl-6f051abda89c146f316c93593c0678af010eda2e.tar.gz tcl-6f051abda89c146f316c93593c0678af010eda2e.tar.bz2 | |
* unix/tclUnixThrd.c (TclpThreadGetStackSize): fix for crash in
freebsd [Bug 1860425].
Diffstat (limited to 'unix/tclUnixThrd.c')
| -rw-r--r-- | unix/tclUnixThrd.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c index 99351a9..dfed046 100644 --- a/unix/tclUnixThrd.c +++ b/unix/tclUnixThrd.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixThrd.c,v 1.55 2007/12/13 15:28:42 dgp Exp $ + * RCS: @(#) $Id: tclUnixThrd.c,v 1.56 2008/01/11 10:54:49 msofer Exp $ */ #include "tclInt.h" @@ -253,14 +253,11 @@ TclpThreadGetStackSize(void) if (!initialized) { initialized = 1; -#if 0 - if (pthread_attr_init(&threadAttr) != 0) { - return 0; - } -#else return 0; -#endif } else { + if (pthread_attr_init(&threadAttr) != 0) { + return -1; + } if (TclpPthreadGetAttrs(pthread_self(), &threadAttr) != 0) { pthread_attr_destroy(&threadAttr); return (size_t)-1; |
