* pinfo.cc (pinfo::pinfo): Set procinfo to NULL to avoid potential cleanup of
uninitialized garbage. (Suggested by Ryan Johnson)
This commit is contained in:
parent
781822a646
commit
cdbb272b4c
@ -1,3 +1,8 @@
|
|||||||
|
2011-05-04 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
|
* pinfo.cc (pinfo::pinfo): Set procinfo to NULL to avoid potential
|
||||||
|
cleanup of uninitialized garbage. (Suggested by Ryan Johnson)
|
||||||
|
|
||||||
2011-05-03 Corinna Vinschen <corinna@vinschen.de>
|
2011-05-03 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* select.cc (cygwin_select): Make degenerate case cancelable.
|
* select.cc (cygwin_select): Make degenerate case cancelable.
|
||||||
|
@ -142,7 +142,7 @@ public:
|
|||||||
bool waiter_ready;
|
bool waiter_ready;
|
||||||
class cygthread *wait_thread;
|
class cygthread *wait_thread;
|
||||||
void init (pid_t, DWORD, HANDLE) __attribute__ ((regparm(3)));
|
void init (pid_t, DWORD, HANDLE) __attribute__ ((regparm(3)));
|
||||||
pinfo () {}
|
pinfo (): procinfo (NULL) {}
|
||||||
pinfo (_pinfo *x): procinfo (x), hProcess (NULL) {}
|
pinfo (_pinfo *x): procinfo (x), hProcess (NULL) {}
|
||||||
pinfo (pid_t n) : rd_proc_pipe (NULL), hProcess (NULL) {init (n, 0, NULL);}
|
pinfo (pid_t n) : rd_proc_pipe (NULL), hProcess (NULL) {init (n, 0, NULL);}
|
||||||
pinfo (pid_t n, DWORD flag) : rd_proc_pipe (NULL), hProcess (NULL), waiter_ready (0), wait_thread (NULL) {init (n, flag, NULL);}
|
pinfo (pid_t n, DWORD flag) : rd_proc_pipe (NULL), hProcess (NULL), waiter_ready (0), wait_thread (NULL) {init (n, flag, NULL);}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user