diff options
author | Christopher Faylor <me@cgf.cx> | 2001-09-22 16:55:02 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-09-22 16:55:02 +0000 |
commit | 5e733918c085833e32581ac0bb0437b00ad2aa8e (patch) | |
tree | 1a6e4725f8c88ede60c41c445c98d685224cd85a /winsup/cygwin/debug.cc | |
parent | 142920f65aeeefc29ef903b75b6327668341bc8e (diff) | |
download | cygnal-5e733918c085833e32581ac0bb0437b00ad2aa8e.tar.gz cygnal-5e733918c085833e32581ac0bb0437b00ad2aa8e.tar.bz2 cygnal-5e733918c085833e32581ac0bb0437b00ad2aa8e.zip |
* exceptions.cc (setup_handler): Always relinquish lock after we've
interrupted.
* fhandler.cc: Move pipe methods to pipe.cc.
* fhandler.h (fhandler_pipe): Add new methods.
* fork.cc (sync_with_parent): Make error messages more informative.
* pipe.cc (fhandler_pipe::fhandler_pipe): Move here from fhandler.cc.
(fhandler_pipe::lseek): Ditto.
(fhandler_pipe::set_close_on_exec): New method.
(fhandler_pipe::read): Ditto.
(fhandler_pipe::close): Ditto.
(fhandler_pipe::dup): Ditto.
(make_pipe): Create the guard mutex on the read side of the pipe.
* select.cc (peek_pipe): Use guard_mutex to discover if we have the right to
read on this pipe.
(fhandler_pipe::readh_for_read): Pass the read pipe guard mutex to peek_pipe.
* syscalls.cc (_read): Always detect signal catchers, for now.
* debug.cc (makethread): Eliminate hack to make thread inheritable.
* sigproc.cc (subproc_init): Don't use hack to make thread inheritable.
Diffstat (limited to 'winsup/cygwin/debug.cc')
-rw-r--r-- | winsup/cygwin/debug.cc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/winsup/cygwin/debug.cc b/winsup/cygwin/debug.cc index c32ac6733..e8293b91f 100644 --- a/winsup/cygwin/debug.cc +++ b/winsup/cygwin/debug.cc @@ -105,7 +105,6 @@ makethread (LPTHREAD_START_ROUTINE start, LPVOID param, DWORD flags, { DWORD tid; HANDLE h; - SECURITY_ATTRIBUTES *sa; thread_start *info; /* Various information needed by the newly created thread */ for (;;) @@ -123,16 +122,9 @@ out: info->func = start; /* Real function to start */ info->arg = param; /* The single parameter to the thread */ - if (*name != '+') - sa = &sec_none_nih; /* The handle should not be inherited by subprocesses. */ - else - { - name++; - sa = &sec_none; /* The handle should be inherited by subprocesses. */ - } - - if ((h = CreateThread (sa, 0, thread_stub, (VOID *) info, flags, &tid))) - regthread (name, tid); /* Register this name/thread id for debugging output. */ + if ((h = CreateThread (&sec_none_nih, 0, thread_stub, (VOID *) info, flags, + &tid))) + regthread (name, tid); /* Register for debugging output. */ return h; } |