diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-25 04:54:13 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-25 04:54:13 +0000 |
commit | 6446c2d4aba02eef0d8553c882f8d235288a66d9 (patch) | |
tree | 1637549e2c7e6432e6ec36774d0e5aa48e0bf44e /libbb | |
parent | 72e76044cfda377486a5199a0d35d71edf669a42 (diff) |
which: fix testsuite failure
pidof: do not output empty line if nothing found
testsuite: disable false positive
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/find_pid_by_name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/find_pid_by_name.c b/libbb/find_pid_by_name.c index 1fafec83a..8dcdb13bc 100644 --- a/libbb/find_pid_by_name.c +++ b/libbb/find_pid_by_name.c @@ -63,7 +63,7 @@ pid_t* find_pid_by_name(const char* procName) (!p->comm[sizeof(p->comm)-2] && strcmp(p->comm, procName) == 0) /* or we require argv0 to match (essential for matching reexeced /proc/self/exe)*/ || (p->argv0 && strcmp(bb_basename(p->argv0), procName) == 0) - /* TOOD: we can also try exe, do we want that? */ + /* TOOD: we can also try /proc/NUM/exe link, do we want that? */ ) { pidList = xrealloc(pidList, sizeof(*pidList) * (i+2)); pidList[i++] = p->pid; |