* dtable.cc (dtable::build_fhandler): Don't increment console fd count if new

operation fails.  Increment fork_fixup field here.
(dtable::dup2): Don't increment fork_fixup field here.
(fdsock): Ditto.
This commit is contained in:
Christopher Faylor
2001-11-10 19:46:15 +00:00
parent 4d2f5ef1da
commit c8b3452829
3 changed files with 11 additions and 8 deletions

View File

@@ -505,7 +505,6 @@ fdsock (int& fd, const char *name, SOCKET soc)
fhandler_socket *fh = (fhandler_socket *) cygheap->fdtab.build_fhandler (fd, FH_SOCKET, name);
fh->set_io_handle ((HANDLE) soc);
fh->set_flags (O_RDWR);
cygheap->fdtab.inc_need_fixup_before ();
fh->set_name (name, name);
debug_printf ("fd %d, name '%s', soc %p", fd, name, soc);
return fh;