* pinfo.h (pinfo::status_exit): Rename from former static function in pinfo.cc.

(pinfo::operator == (char *)): Remove unused operator.
* pinfo.cc (pinfo::status_exit): Move this function info pinfo class.  Use
progname from the pinfo rather than myself.  Be defensive when inspecting
procinfo.
This commit is contained in:
Christopher Faylor
2013-03-29 16:19:11 +00:00
parent 6fcb223858
commit bb93b7ab95
4 changed files with 25 additions and 6 deletions

View File

@@ -179,7 +179,6 @@ public:
int operator == (_pinfo *x) const {return x == procinfo;}
int operator == (void *x) const {return procinfo == x;}
int operator == (int x) const {return (int) procinfo == (int) x;}
int operator == (char *x) const {return (char *) procinfo == x;}
_pinfo *operator * () const {return procinfo;}
operator _pinfo * () const {return procinfo;}
void preserve () { destroy = false; }
@@ -206,6 +205,8 @@ public:
void set_acl ();
friend class _pinfo;
friend class winpids;
private:
DWORD status_exit (DWORD);
};
#define ISSTATE(p, f) (!!((p)->process_state & f))