OSDN Git Service

* fhandler_tty.cc (fhandler_tty_common::dup): Just copy cygheap->ctty to child
authorcgf <cgf>
Wed, 10 Dec 2003 03:19:19 +0000 (03:19 +0000)
committercgf <cgf>
Wed, 10 Dec 2003 03:19:19 +0000 (03:19 +0000)
commit8508e80980a1834d7acc00291d406c04e070036b
treed116e1b1c5351bfb468940c7dedb507c8c69606d
parente5dcb0d2547a493b8db5c4f8207928918ad7547d
* fhandler_tty.cc (fhandler_tty_common::dup): Just copy cygheap->ctty to child
if duping the current ctty.
(fhandler_tty_common::close): Move debugging statement earlier in function.
(fhandler_tty_slave::close): Return success when closing ctty.
* syscalls.cc (close_all_files): Avoid calling fhandler_tty_slave close method
so that open_fhs will not be decremented when closing cygheap ctty.
(setsid): Ditto.
* dcrt0.cc (do_exit): Reorganize to avoid leaving a critical section active
after vfork.
* fhandler.h (fhandler_tty_slave::get_unit): Remove regparm parameter since it
can't work in a virtualized function.
winsup/cygwin/ChangeLog
winsup/cygwin/dcrt0.cc
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_tty.cc
winsup/cygwin/syscalls.cc