Added initial port for BSD/OS (aka BSDI) 2.x and 3.x. 4.x should also(?)
Thu Apr 8 23:47:29 1999 Timur Bakeyev <timur@gnu.org> * cpu.c, mem.c, netload.c, procargs.c, procstate.c, proctime.c, sem_limits.c, shm_limits.c, swap.c: Added initial port for BSD/OS (aka BSDI) 2.x and 3.x. 4.x should also(?) work. Still, this port require more close look and extended check.
This commit is contained in:
committed by
Timur I. Bakeyev
parent
5967e6c3e4
commit
fac354623b
@@ -140,8 +140,10 @@ glibtop_get_proc_time_p (glibtop *server, glibtop_proc_time *buf,
|
||||
/* It does not work for the swapper task. */
|
||||
if (pid == 0) return;
|
||||
|
||||
#ifndef __bsdi__
|
||||
sprintf (filename, "/proc/%d/mem", (int) pid);
|
||||
if (stat (filename, &statb)) return;
|
||||
#endif
|
||||
|
||||
/* Get the process information */
|
||||
pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
|
||||
|
||||
Reference in New Issue
Block a user