Don't use kvm anymore. Patch by hua.zhang@sun.com. Closes #345811.
2006-06-24 Benoît Dejean <benoit@placenet.org> * msg_limits.c: (glibtop_init_msg_limits_p), (glibtop_get_msg_limits_p): * open_suid.c: (glibtop_open_p): * sem_limits.c: (glibtop_init_sem_limits_p), (glibtop_get_sem_limits_p): * shm_limits.c: (glibtop_init_shm_limits_p), (glibtop_get_shm_limits_p): Don't use kvm anymore. Patch by hua.zhang@sun.com. Closes #345811.
This commit is contained in:
committed by
Benoît Dejean
parent
e6d6b0bba7
commit
46c9f6ebeb
@@ -69,9 +69,13 @@ glibtop_open_p (glibtop *server, const char *program_name,
|
||||
server->machine.gid = getgid ();
|
||||
server->machine.egid = getegid ();
|
||||
|
||||
#if GLIBTOP_SOLARIS_RELEASE < 51000
|
||||
|
||||
server->machine.kd = kvm_open(NULL, NULL, NULL, O_RDONLY, NULL);
|
||||
if(!server->machine.kd)
|
||||
glibtop_warn_io_r(server, "kvm_open()");
|
||||
|
||||
#endif
|
||||
|
||||
/* Drop priviledges; we only become root when necessary.
|
||||
|
||||
|
Reference in New Issue
Block a user