Moved them into the setgid server since they need to access kvm data.
1999-05-08 Martin Baulig <martin@home-of-linux.org> * shm_limits.c, msg_limits.c, sem_limits.c: Moved them into the setgid server since they need to access kvm data. * open_suid.c, close_suid.c: New file. We do the initialization and cleanup for the setgid server here. * glibtop_suid.h: New file. We include this in the setgid files. * open.c: Moved kvm opening code into open_suid.c.
This commit is contained in:
committed by
Martin Baulig
parent
3a7d7778a0
commit
e8a3a40691
@@ -189,11 +189,4 @@ glibtop_open_s (glibtop *server, const char *program_name,
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
server->machine.kd = kvm_open(NULL, NULL, NULL, O_RDONLY, NULL);
|
||||
if(!server->machine.kd)
|
||||
glibtop_warn_io_r(server, "kvm_open()");
|
||||
|
||||
fprintf (stderr, "Sleeping 2 seconds, please wait ...\n");
|
||||
sleep (2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user