~ubuntu-branches/debian/sid/libgtop2/sid

« back to all changes in this revision

Viewing changes to sysdeps/openbsd/procstate.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2013-09-05 02:53:46 UTC
  • mfrom: (1.1.21)
  • Revision ID: package-import@ubuntu.com-20130905025346-qfl4a2bg8b0s5clw
Tags: 2.28.5-1
* New upstream release.
* Remove those kfreebsd patches which have been merged upstream.
* Drop 99_ltmain_as-needed.patch and use dh_autoreconf --as-needed instead.
* Bump Standards-Version to 3.9.4. No further changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
                          glibtop_proc_state *buf,
52
52
                          pid_t pid)
53
53
{
54
 
        struct kinfo_proc2 *pinfo;
 
54
        struct kinfo_proc *pinfo;
55
55
        int count = 0;
56
56
 
57
57
        glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_STATE), 0);
62
62
        if (pid == 0) return;
63
63
 
64
64
        /* Get the process information */
65
 
        pinfo = kvm_getproc2 (server->machine.kd, KERN_PROC_PID, pid,
 
65
        pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid,
66
66
                              sizeof (*pinfo), &count);
67
67
        if ((pinfo == NULL) || (count != 1)) {
68
68
                glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);