I use a call to pgrep <process name>
-> stdout in a procd init script. It's worked admirably for months until recently. Now it seems to generate an additional unknown Phantom PID.
The init script function says simply send pgrep <process name>
to stdout, but now I see what to all intents seems to be a Phantom process added.
Call pgrep <process name>
from init script generates this to stdout
PID(s)
===========
3367--\
3368 |-->valid output
3369--/
**22740** *Phantom Process ?*
If I issue pgrep <process name>
from CLI it returns the expected result as:
3367
3368
3369
and if I call ps
from CLI, I never see the Phantom process listed:
PID USER
22497 root 1220 S ash ./testps
22519 root 1228 R ps
31387 root 7560 SN /usr/sbin/collectd -C /tmp/collectd.conf -f
Has something changed with BusyBox in recent Snapshot?