Yes, more or less I see what this patch does (I hope ;).
Yes, I see.
But I must admit, _personally_ I am not sure this problem worth the
trouble. And, I already mentioned daemonize() case, IOW I am not sure
it is _always_ right to choose exiting_parent->parent for accounting.
To me, this can be equally confusing. A user sees the running deamon
with ppid = 1, then this daemon exits and top reports the "unrelated"
process as cpu consumer.
But once again. I am _not_ against this patch. I never know when it
comes to new features. Certainly you know better if this suits top.
What I actually meant is: dear CC list, please look at this change
and comment ;)
Oleg.
--