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.
This commit is contained in:
Christopher Faylor
2002-06-02 06:07:01 +00:00
parent a673eba664
commit 6b7cd251c7
28 changed files with 83 additions and 107 deletions

View File

@ -1091,6 +1091,7 @@ class fhandler_proc: public fhandler_virtual
void fill_filebuf ();
};
class pinfo;
class fhandler_registry: public fhandler_proc
{
public:
@ -1111,16 +1112,13 @@ class fhandler_registry: public fhandler_proc
struct _pinfo;
class fhandler_process: public fhandler_proc
{
private:
pid_t saved_pid;
_pinfo *saved_p;
public:
fhandler_process ();
int exists();
struct dirent *readdir (DIR *);
int open (path_conv *real_path, int flags, mode_t mode = 0);
int __stdcall fstat (struct __stat64 *buf, path_conv *) __attribute__ ((regparm (3)));
void fill_filebuf ();
void fill_filebuf (pinfo& p);
};
typedef union