* pinfo.cc (winpids::add): Don't copy procinfo when there is no cygwin process
associated with the pid, i.e., procinfo == NULL.
This commit is contained in:
parent
c9da5a2183
commit
678a9510df
@ -1,3 +1,8 @@
|
|||||||
|
2005-12-12 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* pinfo.cc (winpids::add): Don't copy procinfo when there is no cygwin
|
||||||
|
process associated with the pid, i.e., procinfo == NULL.
|
||||||
|
|
||||||
2005-12-12 Christopher Faylor <cgf@timesys.com>
|
2005-12-12 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* times.cc (hires_ms::usecs): Correct order when checking if high
|
* times.cc (hires_ms::usecs): Correct order when checking if high
|
||||||
|
@ -1130,7 +1130,7 @@ winpids::add (DWORD& nelem, bool winpid, DWORD pid)
|
|||||||
|
|
||||||
out:
|
out:
|
||||||
copied[nelem] = false;
|
copied[nelem] = false;
|
||||||
if (make_copy)
|
if (make_copy && p)
|
||||||
{
|
{
|
||||||
_pinfo *pnew = (_pinfo *) malloc (sizeof (*p.procinfo));
|
_pinfo *pnew = (_pinfo *) malloc (sizeof (*p.procinfo));
|
||||||
if (pnew)
|
if (pnew)
|
||||||
|
Loading…
Reference in New Issue
Block a user