diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-14 04:36:11 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-14 04:36:11 +0300 |
commit | 9f00e0578167e63e161c38d1fa41b93071616b6c (patch) | |
tree | c18b05323e939d6e8736297b33dbb4b2ce5e495f /libbb/find_pid_by_name.c | |
parent | d63cd1bf1cec62dcdfaf89e821b55c4d80421ba6 (diff) |
killall and sestatus also need ARGVN scanning
Diffstat (limited to 'libbb/find_pid_by_name.c')
-rw-r--r-- | libbb/find_pid_by_name.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libbb/find_pid_by_name.c b/libbb/find_pid_by_name.c index 92d6d0254..600d4e1a8 100644 --- a/libbb/find_pid_by_name.c +++ b/libbb/find_pid_by_name.c @@ -67,15 +67,14 @@ static int comm_match(procps_status_t *p, const char *procName) return 1; } -/* find_pid_by_name() +/* This finds the pid of the specified process. + * Currently, it's implemented by rummaging through + * the proc filesystem. * - * Modified by Vladimir Oleynik for use with libbb/procps.c - * This finds the pid of the specified process. - * Currently, it's implemented by rummaging through - * the proc filesystem. + * Returns a list of all matching PIDs + * It is the caller's duty to free the returned pidlist. * - * Returns a list of all matching PIDs - * It is the caller's duty to free the returned pidlist. + * Modified by Vladimir Oleynik for use with libbb/procps.c */ pid_t* FAST_FUNC find_pid_by_name(const char *procName) { |