diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-02 06:07:01 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-02 06:07:01 +0000 |
commit | 6b7cd251c7f03394208d65451ef1bed91905026f (patch) | |
tree | a1f5cce168c59296346c1c632293e56f7db7e544 /winsup/cygwin/dll_init.cc | |
parent | a673eba664bf26888ba73f2508227cc7b2c36d44 (diff) | |
download | cygnal-6b7cd251c7f03394208d65451ef1bed91905026f.tar.gz cygnal-6b7cd251c7f03394208d65451ef1bed91905026f.tar.bz2 cygnal-6b7cd251c7f03394208d65451ef1bed91905026f.zip |
Remove unneeded sigproc.h includes throughout.
* fhandler.h (fhandler_proc::fill_filebuf): Take a pinfo argument.
* fhandler_proc.cc (fhandler_proc::get_proc_fhandler): Simplify search for
given pid.
(fhandler_proc::readdir): Assume that pid exists if it shows up in the winpid
list.
* fhandler_process.cc (fhandler_process::open): Simplify search for given pid.
Call fill_filebuf with pinfo argument.
(fhandler_process::fill_filebuf): Pass pinfo here and assume that it exists.
* pinfo.h (pinfo::remember): Define differently if sigproc.h is not included.
* dll_init.cc (dll_list::detach): Don't run destructor on exit.
Diffstat (limited to 'winsup/cygwin/dll_init.cc')
-rw-r--r-- | winsup/cygwin/dll_init.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/dll_init.cc b/winsup/cygwin/dll_init.cc index c3059ac40..8d5f34ca7 100644 --- a/winsup/cygwin/dll_init.cc +++ b/winsup/cygwin/dll_init.cc @@ -18,6 +18,7 @@ details. */ #include "path.h" #include "dtable.h" #include "cygheap.h" +#include "pinfo.h" extern void __stdcall check_sanity_and_sync (per_process *); @@ -183,6 +184,9 @@ dll_list::alloc (HINSTANCE h, per_process *p, dll_type type) void dll_list::detach (dll *d) { + if (!myself || myself->process_state == PID_EXITED) + return; + if (d->count <= 0) system_printf ("WARNING: try to detach an already detached dll ...\n"); else if (--d->count == 0) |