Steve recommends *not* returning 100 in the case where the euid doesn't own the process.
pidofproc is not documented as returning non-zero in the case you don't own the process. In fact, if no pid file is found, and /bin/pidof runs farther down, it doesn't check ownership either.
This patch returns 0 if the ps finds a process with a matching pid.
Steve recommends *not* returning 100 in the case where the euid doesn't own the process.
pidofproc is not documented as returning non-zero in the case you don't own the process. In fact, if no pid file is found, and /bin/pidof runs farther down, it doesn't check ownership either.
This patch returns 0 if the ps finds a process with a matching pid.
Comments?
:-Dustin