Can't add an observer to init (PID = 1)
I'm, wondering if the null value is related to Frysk looking for init's parent
The error displayed is:
Frysk Core has reported the following errors
Actually - it's failing for most processes - this bug may be premature as the
GUI may not be ready for real testing yet.
Not allowed to attach to PID 1, need better error recovery when permission
denied - should notify GUI of failure rather than panic (all the hooks are ready).
*** Bug 2586 has been marked as a duplicate of this bug. ***
With the current state of the druid there is no longer an obvious way to trigger
or test this since the druid only lists processes you own, and thus doesn't list
Created attachment 1083 [details]
Running frysk-gui as root still exhibits this problem. This patch fixes it by
adding EPERM and then catching it in FryskGui.
* LinuxTask.java (sendAttach): Handle Errno.Eperm.
* Errno.java (Eperm): New.
* cni/Errno.cxx (throwErrno): Added EPERM.
FYI, the core needs to handle this exception locally.
*** Bug 2736 has been marked as a duplicate of this bug. ***
FYI - this bug is still present in Frysk as built from CVS head on June 21.
Correction - what I meant to say was that if Frysk is run as root, the init
process still appears in the gui and can have observers attached to it.
As of the RHEL5 latest rpm, the init process should not be in the druid as there
are filters in place to exclude it. Additionally, no process wil be shown that
does not match Manager.UID/GID == Process.UID/GID