[Toybox] [PATCH] pidof ignores full pathname

Lukasz Skalski l.skalski at partner.samsung.com
Fri Aug 30 05:21:14 PDT 2013


Hi,

Description of problem:

Pidof can't get the pid when using full path.

Manpage says:

"[...] When pidof is invoked with a full pathname to the program it 
should find the pid of, it is reasonably safe. Otherwise it is possible 
that it returns pids of running programs that happen to have the same 
name as the program you're after but are actually other programs [...]"

This patch fix above problem in for_each_pid_with_name_in() function 
(lib/pending.c).

-- 
Lukasz Skalski
Samsung R&D Institute Poland
Samsung Electronics
l.skalski at partner.samsung.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: attachment.diff
Type: text/x-patch
Size: 468 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20130830/4990eecc/attachment.bin>


More information about the Toybox mailing list