Fix kvm_open issue
This commit is contained in:
@@ -61,7 +61,7 @@ static const unsigned long _glibtop_sysdeps_map_entry =
|
|||||||
/*
|
/*
|
||||||
* Don't implement address comparison.
|
* Don't implement address comparison.
|
||||||
*/
|
*/
|
||||||
static int __inline
|
static __inline int
|
||||||
no_impl(const void *p, const void *q)
|
no_impl(const void *p, const void *q)
|
||||||
{
|
{
|
||||||
abort(); /* Should not be called. */
|
abort(); /* Should not be called. */
|
||||||
|
@@ -69,7 +69,7 @@ glibtop_open_p (glibtop *server, const char *program_name,
|
|||||||
server->machine->gid = getgid ();
|
server->machine->gid = getgid ();
|
||||||
server->machine->egid = getegid ();
|
server->machine->egid = getegid ();
|
||||||
/* Setup machine-specific data */
|
/* Setup machine-specific data */
|
||||||
server->machine->kd = kvm_openfiles (NULL, NULL, NULL, O_RDONLY, errbuf);
|
server->machine->kd = kvm_openfiles (NULL, NULL, NULL, KVM_NO_FILES, errbuf);
|
||||||
|
|
||||||
if (server->machine->kd == NULL)
|
if (server->machine->kd == NULL)
|
||||||
glibtop_error_io_r (server, "kvm_open");
|
glibtop_error_io_r (server, "kvm_open");
|
||||||
|
Reference in New Issue
Block a user