/[baselayout]/trunk/src/librc-daemon.c
Gentoo

Diff of /trunk/src/librc-daemon.c

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

Revision 2957 Revision 2964
179 char **argv; 179 char **argv;
180 pid_t *pids = NULL; 180 pid_t *pids = NULL;
181 pid_t *tmp; 181 pid_t *tmp;
182 int npids = 0; 182 int npids = 0;
183 183
184 if ((kd = kvm_openfiles (NULL, NULL, NULL, O_RDONLY, errbuf)) == NULL) 184 if ((kd = kvm_openfiles (NULL, NULL, NULL, O_RDONLY, errbuf)) == NULL) {
185 eerrorx ("kvm_open: %s", errbuf); 185 fprintf (stderr, "kvm_open: %s", errbuf);
186 return (NULL);
187 }
186 188
187#if defined(__DragonFly__) || defined( __FreeBSD__) 189#if defined(__DragonFly__) || defined( __FreeBSD__)
188 kp = kvm_getprocs (kd, KERN_PROC_PROC, 0, &processes); 190 kp = kvm_getprocs (kd, KERN_PROC_PROC, 0, &processes);
189#else 191#else
190 kp = kvm_getproc2 (kd, KERN_PROC_ALL, 0, sizeof(struct kinfo_proc2), 192 kp = kvm_getproc2 (kd, KERN_PROC_ALL, 0, sizeof(struct kinfo_proc2),

Legend:
Removed from v.2957  
changed lines
  Added in v.2964

  ViewVC Help
Powered by ViewVC 1.1.20