mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 04:19:21 +08:00
* thread.cc (pthread::thread_init_wrapper): Initialize exception handling.
This commit is contained in:
parent
c6e0f665bc
commit
f796413184
@ -1,3 +1,8 @@
|
||||
2003-10-31 Thomas Pfaff <tpfaff@gmx.net>
|
||||
|
||||
* thread.cc (pthread::thread_init_wrapper): Initialize exception
|
||||
handling.
|
||||
|
||||
2003-10-31 Thomas Pfaff <tpfaff@gmx.net>
|
||||
|
||||
Rename pthread::running to pthread::valid throughout.
|
||||
|
@ -38,6 +38,7 @@ details. */
|
||||
#include "pinfo.h"
|
||||
#include "perprocess.h"
|
||||
#include "security.h"
|
||||
#include "exceptions.h"
|
||||
#include <semaphore.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/timeb.h>
|
||||
@ -1894,6 +1895,13 @@ pthread::thread_init_wrapper (void *_arg)
|
||||
struct sigaction _sigs[NSIG];
|
||||
sigset_t _sig_mask; /* one set for everything to ignore. */
|
||||
|
||||
/* According to onno@stack.urc.tue.nl, the exception handler record must
|
||||
be on the stack. */
|
||||
exception_list cygwin_except_entry;
|
||||
|
||||
/* Initialize SIGSEGV handling, etc. */
|
||||
init_exceptions (&cygwin_except_entry);
|
||||
|
||||
// setup signal structures
|
||||
thread->sigs = _sigs;
|
||||
thread->sigmask = &_sig_mask;
|
||||
|
Loading…
x
Reference in New Issue
Block a user