projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
build system: Improve detection of the libnetlink library.
[collectd.git]
/
src
/
processes.c
diff --git
a/src/processes.c
b/src/processes.c
index
29492ac
..
9d8bc01
100644
(file)
--- a/
src/processes.c
+++ b/
src/processes.c
@@
-510,11
+510,14
@@
static int *ps_read_tasks (int pid)
closedir (dh);
+ if (list_len == 0)
+ return (NULL);
+
assert (list_len < list_size);
assert (list[list_len] == 0);
return (list);
-}
+}
/* int *ps_read_tasks */
int ps_read_process (int pid, procstat_t *ps, char *state)
{