Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Mar 8, 2024
1 parent 0b10b29 commit ad43ceb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bsd/restartable.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ print_proc(const struct kinfo_proc *kp) {
size_t count;
#endif

if (kp->ki_pid == 0)
return;

struct kinfo_vmentry *vmmap = kinfo_getvmmap(kp->ki_pid, &count);
if (vmmap == NULL) {
if (errno != EPERM)
Expand Down Expand Up @@ -127,7 +124,7 @@ print_all(void) {
if (procs == NULL)
err(1, "kinfo_getallproc()");

for (int i = 0; i < count; i++)
for (int i = 1; i < count; i++)
print_proc(&procs[i]);

free(procs);
Expand Down

0 comments on commit ad43ceb

Please sign in to comment.