Re: [Linux-ia64] Re: prctl patch for fpu faults

Jesse Barnes
2001-10-10T22:31:22Z

I was thinking of hacking up the 'prctl' tool to take a PID as an
argument, that way it could set the flags for any task. It would allow
an initscript to set init's flags, among other things. Would such a
change qualify as a cleaner solution?

Jesse

On Wed, 10 Oct 2001, David Mosberger wrote:

> >>>>> On Wed, 10 Oct 2001 08:59:36 -0500 (CDT), Jack Steiner <steiner@sgi.com> said:
>
> Jack> There should be a way a site can change the default logging
> Jack> behavior & have it apply to ALL tasks..
>
> I agree. In theory, if you can change the behavior of "init", you'll
> change the behavior of all subsequent tasks (the settings are
> inherited across fork). If you're willing to hack /etc/inittab, you
> could probably do that with the "prctl" utility today (or perhaps even
> with prctl + a suitable kernel command line), but none of these
> solutions seem to be very pretty. Perhaps someone can come up with a
> cleaner solution?
>
> --david
>