diff options
author | Christopher Faylor <me@cgf.cx> | 2001-04-27 18:50:59 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-04-27 18:50:59 +0000 |
commit | cba63823f808a747ad762d3a8d5a4d8ef6890e54 (patch) | |
tree | 9f7136cef4a65dba47cb4e550daf300e8fbeda50 /winsup/cygwin/thread.cc | |
parent | 9572ecf9798a493965d173398d9db923c154a4c3 (diff) | |
download | cygnal-cba63823f808a747ad762d3a8d5a4d8ef6890e54.tar.gz cygnal-cba63823f808a747ad762d3a8d5a4d8ef6890e54.tar.bz2 cygnal-cba63823f808a747ad762d3a8d5a4d8ef6890e54.zip |
* thread.cc (thread_init_wrapper): Use _REENT_INIT to initialize the reent
structure of newlib.
* sigproc.h (sig_send): Add exception parameter to sig_send.
* sigproc.cc (sig_send): Ditto. Use it when setting frame info.
* exceptions.cc (handle_exceptions): Use exception flag when calling sig_send.
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r-- | winsup/cygwin/thread.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index 861dac3e7..deedcae42 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -737,7 +737,7 @@ thread_init_wrapper (void *_arg) pthread *thread = (pthread *) _arg; struct __reent_t local_reent; struct _winsup_t local_winsup; - struct _reent local_clib; + struct _reent local_clib = _REENT_INIT(local_clib); struct sigaction _sigs[NSIG]; sigset_t _sig_mask; /* one set for everything to ignore. */ @@ -748,14 +748,8 @@ thread_init_wrapper (void *_arg) thread->sigmask = &_sig_mask; thread->sigtodo = _sigtodo; - memset (&local_clib, 0, sizeof (struct _reent)); memset (&local_winsup, 0, sizeof (struct _winsup_t)); - local_clib._errno = 0; - local_clib._stdin = &local_clib.__sf[0]; - local_clib._stdout = &local_clib.__sf[1]; - local_clib._stderr = &local_clib.__sf[2]; - local_reent._clib = &local_clib; local_reent._winsup = &local_winsup; |