diff options
author | Jasper Lievisse Adriaanse <jasper@humppa.nl> | 2011-09-18 13:41:20 +0200 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@humppa.nl> | 2011-09-18 13:41:20 +0200 |
commit | 7bd52fc397be0598638abae2bf71740af505d29c (patch) | |
tree | d4fb2e1823759fb03842c54fc1fe6b31ffe02cf9 /sysdeps/openbsd | |
parent | ff7cbcbe61e66e86e70d5269691dc6f11129af08 (diff) | |
download | libgtop-7bd52fc397be0598638abae2bf71740af505d29c.tar.gz |
Extend comment a bit regarding processes dying before we get to kvm_getproc2().
Diffstat (limited to 'sysdeps/openbsd')
-rw-r--r-- | sysdeps/openbsd/procmap.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sysdeps/openbsd/procmap.c b/sysdeps/openbsd/procmap.c index 037ca1f7..09945eef 100644 --- a/sysdeps/openbsd/procmap.c +++ b/sysdeps/openbsd/procmap.c @@ -64,7 +64,11 @@ _glibtop_init_proc_map_p (glibtop *server) server->sysdeps.proc_map = _glibtop_sysdeps_proc_map; } -/* Provides detailed information about a process. */ +/* + * Provides detailed information about a process. + * Due to the fact we are only requested info about one process, it's possible + * the process has been reaped before we get to kvm_getproc2. Tough luck. + */ glibtop_map_entry * glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf, @@ -124,7 +128,8 @@ glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf, /* I tested this a few times with `mmap'; as soon as you write * to the mmap'ed area, the object type changes from OBJT_VNODE - * to OBJT_DEFAULT so it seems this really works. */ + * to OBJT_DEFAULT so it seems this really works. + */ do { glibtop_map_entry *mentry; |