Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-06-03 10:35:10 +0400
committerChristopher Faylor <me@cgf.cx>2006-06-03 10:35:10 +0400
commit578e142a2be9dcca7f64c54e6ae8cecd01e6ac71 (patch)
tree502eec3c3b0813817d77c24beca92c90f25e23ff /winsup/cygwin/cygheap.cc
parent6210ee96ec5e436ad937e064f527b9a53276e4bf (diff)
* cygheap.cc (init_cygheap::close_ctty): Remove obsolete code.
* dcrt0.cc (child_info_spawn::handle_spawn): Signal ready after we've run fixup_after_exec. * dtable.cc (dtable::fixup_after_exec): Add debugging output. * fhandler_tty.cc (fhandler_pty_master::doecho): Use class version of to_master. (fhandler_tty_common::close): Remove obsolete code. (fhandler_tty_slave::fixup_after_exec): Don't close, since this is done in dtable's fixup_after_exec. (revisit later?) (fhandler_pty_master::fixup_after_exec): Ditto.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r--winsup/cygwin/cygheap.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
index 9f44c8a30..9b98b346a 100644
--- a/winsup/cygwin/cygheap.cc
+++ b/winsup/cygwin/cygheap.cc
@@ -102,21 +102,8 @@ void
init_cygheap::close_ctty ()
{
debug_printf ("closing cygheap->ctty %p", cygheap->ctty);
-#ifdef NEWVFORK
- int usecount = cygheap->ctty->usecount;
-#endif
cygheap->ctty->close ();
-#ifndef NEWVFORK
cygheap->ctty = NULL;
-#else // FIXME: This code ain't right
- if (cygheap->ctty_on_hold == cygheap->ctty)
- cygheap->ctty_on_hold = NULL;
- if (usecount == 1)
- {
- cygheap->ctty = NULL;
- debug_printf ("setting cygheap->ctty to NULL");
- }
-#endif
}
#define nextpage(x) ((char *) (((DWORD) ((char *) x + granmask)) & ~granmask))