diff options
author | Christopher Faylor <me@cgf.cx> | 2004-01-24 03:40:33 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-01-24 03:40:33 +0000 |
commit | f4e815bc30f3c7179b8a914bb043ce087d7ad988 (patch) | |
tree | 279aa2901ba901b34b6a7a87b9f9511c437dc383 /winsup/cygwin/cygheap.cc | |
parent | 8e21b8e53489c0b02f4ee8972bf3d5db6473c442 (diff) | |
download | newlib-f4e815bc30f3c7179b8a914bb043ce087d7ad988.zip newlib-f4e815bc30f3c7179b8a914bb043ce087d7ad988.tar.gz newlib-f4e815bc30f3c7179b8a914bb043ce087d7ad988.tar.bz2 |
* cygheap.cc (init_cygheap::close_ctty): Protect YA vforkism.
* fhandler.h (fhandler_base::has_acls): Make pass through for path_conv method.
(fhandler_base::isremote): Ditto.
(fhandler_base::is_fs_special): Ditto.
(fhandler_base::has_attribute): Ditto. Define new function.
(fhandler_base::fhaccess): Declare new function based on access_worker.
(fhandler_base::set_has_acls): Eliminate obsolete function.
(fhandler_base::set_isremote): Ditto.
* fhandler.cc (fhandler_base::fhaccess): Move from syscalls.cc and into
fhandler_base class. Use fhandler methods to access data rather than path_conv
stuff.
(fhandler_base::device_access_denied): Use fhaccess method.
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Ditto.
(fhandler_base::open_fs): Remove calls to obsolete functions.
* fhandler_virtual.cc (fhandler_virtual::open): Ditto.
* winsup.h (access_worker): Remove obsolete access_worker declaration.
*syscalls.cc (access_worker): Move function to fhandler.cc.
(access): Use fhaccess method.
* pinfo.cc (_pinfo::set_ctty): Clarify debugging output.
* sigproc.cc (sig_dispatch_pending): Ditto.
* syscalls.cc (setsid): Perform minor rearrangement.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index e057f2f..83189c3 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -176,7 +176,9 @@ 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; |