From b0309a1658ccbda1a9a39e3cae19026e247b83cc Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 13 Sep 2003 01:21:32 +0000 Subject: * thread.cc (MTinterface::fixup_after_fork): Remove code which potentially overwrote _impure pointer with contents of thread which invoked fork since this eliminates important information like the pointer to the atexit queue. --- winsup/cygwin/thread.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'winsup/cygwin/thread.cc') diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index 516cb8d2b..2304b7b42 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -224,10 +224,6 @@ MTinterface::fixup_after_fork (void) /* As long as the signal handling not multithreaded switch reents storage back to _impure_ptr for the mainthread to support fork from threads other than the mainthread */ - struct _reent *reent_old = __getreent (); - - if (reent_old && _impure_ptr != reent_old) - *_impure_ptr = *reent_old; reents._clib = _impure_ptr; reents._winsup = &winsup_reent; winsup_reent._process_logmask = LOG_UPTO (LOG_DEBUG); -- cgit v1.2.3