No longer abort() is no such pid. buf.flags == 0ULL means that there no

* procargs.c: (glibtop_get_proc_args_s):
	* prockernel.c: (glibtop_get_proc_kernel_s):
	* procmem.c: (glibtop_get_proc_mem_s):
	* procsegment.c: (glibtop_get_proc_segment_s):
	* procsignal.c: (glibtop_get_proc_signal_s):
	* procstate.c: (glibtop_get_proc_state_s):
	* proctime.c: (glibtop_get_proc_time_s):
	* procuid.c: (glibtop_get_proc_uid_s): No longer abort() is no such pid.
	buf.flags == 0ULL means that there no data could be retrieve at all.
	Closes #154876. Thanks to Christophe Belle.
This commit is contained in:
Benoît Dejean
2004-10-22 15:35:57 +00:00
parent 405f0602e0
commit e6f0664c3b
9 changed files with 21 additions and 47 deletions

View File

@@ -62,12 +62,7 @@ glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf,
memset (buf, 0, sizeof (glibtop_proc_kernel));
pinfo = _glibtop_get_procinfo(server, pid);
if (pinfo == NULL)
{
glibtop_error_io_r(server, "Cannot read procsinfo");
return;
}
if (pinfo == NULL) return;
if (!(pinfo->pi_flags | SKPROC))
{