/[monit]/monit/process/sysdep.c
ViewVC logotype

Diff of /monit/process/sysdep.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by chopp, Mon Oct 28 15:22:15 2002 UTC revision 1.8 by rory, Mon Oct 28 22:08:21 2002 UTC
# Line 372  int init_process_info_sysdep(void) { Line 372  int init_process_info_sysdep(void) {
372    
373    register int pagesize;    register int pagesize;
374    struct vmmeter vmm;    struct vmmeter vmm;
375      int mib[2];
376      size_t len;
377        
378    struct nlist nlst [] = {    struct nlist nlst [] = {
379        { "_bufspace"},        { "_bufspace"},
# Line 385  int init_process_info_sysdep(void) { Line 387  int init_process_info_sysdep(void) {
387    
388    }    }
389    
390    num_cpus= sysconf(_SC_NPROCESSORS_CONF);    mib[0] = CTL_HW;
391      mib[1] = HW_NCPU;
392      len = sizeof(num_cpus);
393      sysctl(mib, 2, &num_cpus, &len, NULL, 0);
394    
395    kvm_handle = kvm_open(NULL, NULL, NULL, O_RDONLY, "monit");    kvm_handle = kvm_open(NULL, NULL, NULL, O_RDONLY, "monit");
396        

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26