* pinfo.cc (_pinfo::set_ctty): Revert 2012-02-07 change to skip function if tty

in question == our ctty.
* syscalls.cc (setsid): Avoid two function calls.
* dtable.cc (dtable::dup_worker): Remove debugging.
* init.cc (search_for): Calculate for every new process rather than using
shared value.
(threadfunc_ix): Fill in for ever new process rather than sing shared value.
This commit is contained in:
Christopher Faylor
2012-02-14 19:08:20 +00:00
parent 5401796acf
commit 4eb5175d90
5 changed files with 22 additions and 18 deletions

View File

@@ -16,8 +16,8 @@ details. */
static DWORD _my_oldfunc;
static char *search_for __attribute__((section (".cygwin_dll_common"), shared)) = (char *) cygthread::stub;
unsigned threadfunc_ix[8] __attribute__((section (".cygwin_dll_common"), shared));
static char *search_for = (char *) cygthread::stub;
unsigned threadfunc_ix[8];
static bool dll_finished_loading;
#define OLDFUNC_OFFSET -1