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:
@ -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
|
||||
|
Reference in New Issue
Block a user