Mercurial > hg > toybox
comparison toys/lsb/pidof.c @ 762:f169d9708518
Extend killall with support for -v and -i
author | Elie De Brauwer <eliedebrauwer@gmail.com> |
---|---|
date | Sun, 16 Dec 2012 13:43:36 +0100 |
parents | 0faab963ea92 |
children | 242c5de2bb22 |
comparison
equal
deleted
inserted
replaced
761:6a558bf5de65 | 762:f169d9708518 |
---|---|
23 | 23 |
24 GLOBALS( | 24 GLOBALS( |
25 char *omit; | 25 char *omit; |
26 ) | 26 ) |
27 | 27 |
28 static int print_pid(pid_t pid) | 28 static int print_pid(pid_t pid, char * name) |
29 { | 29 { |
30 char * res; | 30 char * res; |
31 int len; | 31 int len; |
32 | 32 |
33 sprintf(toybuf, "%d", pid); | 33 sprintf(toybuf, "%d", pid); |