fixes processes plugin on FreeBSD Jail
authorale@biancalanas.net <ale@biancalanas.net>
Fri, 1 May 2015 16:48:28 +0000 (16:48 +0000)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 5 May 2015 15:41:20 +0000 (17:41 +0200)
src/processes.c

index c77859d..6caea54 100644 (file)
@@ -1799,7 +1799,7 @@ static int ps_read (void)
        ps_list_reset ();
 
        /* Open the kvm interface, get a descriptor */
-       kd = kvm_open (NULL, NULL, NULL, 0, errbuf);
+       kd = kvm_openfiles (NULL, "/dev/null", NULL, 0, errbuf);
        if (kd == NULL)
        {
                ERROR ("processes plugin: Cannot open kvm interface: %s",