https://bugzilla.novell.com/show_bug.cgi?id=664941
https://bugzilla.novell.com/show_bug.cgi?id=664941#c8
--- Comment #8 from Michal Kubeček 2011-03-03 11:22:11 UTC ---
I have found two problems:
(1) When called from sys.xsession, checkproc's calls to stat() and readlinkat()
on /proc/.../exe fail with EACCES.
(2) When checkproc is called with -p option and PID (number) instead of a
filename, it first fills the "remember" list and discards pid_file variable.
But if -k option was given, the else branch in block after "Do main work"
comment (lines 223-229) acts as if no PID was given. In such case it calls
pidof() which discards "remember" list and fails if readlinkat() on
"/proc/.../exe" fails with EACCES.
Combination of (1) and (2) is the reason why '/sbin/checkproc -p
$SSH_AGENT_PID' finds the process and '/sbin/checkproc -k -p $SSH_AGENT_PID'
does not. I don't know neither the reason of (1) nor whether it is a bug or not
but (2) is IMHO a bug in checkproc: with -k option, numeric argument of -p is
ignored.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.