aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/cygtls.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-12-30 03:59:45 +0000
committerChristopher Faylor <me@cgf.cx>2003-12-30 03:59:45 +0000
commitf7cb207b69067e4d1226f4d0786bc4c287cbe173 (patch)
treefb62bbabbfd2bdf1073012adf425290faf98a2da /winsup/cygwin/cygtls.h
parent8ed5c9b6297dce0115a462e6ae1a644a9a278bdb (diff)
downloadnewlib-f7cb207b69067e4d1226f4d0786bc4c287cbe173.zip
newlib-f7cb207b69067e4d1226f4d0786bc4c287cbe173.tar.gz
newlib-f7cb207b69067e4d1226f4d0786bc4c287cbe173.tar.bz2
* cygtls.h (_threadinfo::stack): Increase stack size to accommodate nested
signal handlers. Reorganize to cause potential SEGV on stack overflow. * sigproc.cc (no_signals_available): Check sendsig value rather than relying on obsolete sig_loop_wait. (sigproc_terminate): Ditto. (proc_can_be_signalled): Check sendsig value even for myself. * tlsoffsets.h: Regenerate.
Diffstat (limited to 'winsup/cygwin/cygtls.h')
-rw-r--r--winsup/cygwin/cygtls.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h
index 846bac5..9253683 100644
--- a/winsup/cygwin/cygtls.h
+++ b/winsup/cygwin/cygtls.h
@@ -105,9 +105,9 @@ struct _threadinfo
struct _reent local_clib;
struct _local_storage locals;
struct _threadinfo *prev, *next;
- __stack_t stack[8];
- int sig;
__stack_t *stackptr;
+ int sig;
+ __stack_t stack[1024];
/*gentls_offsets*/
static CRITICAL_SECTION protect_linked_list;