[PATCH v7 2/5] nptl: Add __raise_direct
Samuel Thibault
samuel.thibault@ens-lyon.org
Sat Mar 14 17:06:31 GMT 2026
Hello,
Florian Weimer, le lun. 02 mars 2026 10:39:07 +0100, a ecrit:
> * Adhemerval Zanella:
>
> > diff --git a/sysdeps/htl/raise.c b/sysdeps/htl/raise.c
> > index 3200f91634..9c8bccc5a9 100644
> > --- a/sysdeps/htl/raise.c
> > +++ b/sysdeps/htl/raise.c
> > @@ -51,6 +51,9 @@ raise (int signo)
> > else
> > return __kill (__getpid (), signo);
> > }
> > +/* TODO: __raise_direct should not change errno and work during process
> > + startup. */
> > +weak_alias (raise, __raise_direct)
>
> Sam, Guy, could you help with this?
Sure. But what point of "process startup" is that about? Are we sure
that no pthread was created so it's really only to be sent to the
process, for instance?
What is the purpose of the raise, just to abort the process, or possibly
to run a signal handler (but then setup by what)?
We would probably just need to rename the current
sysdeps/mach/hurd/kill.c implementation to a __kill_direct that does not
uses __hurd_fail, and make kill.c just call it and use __hurd_fail.
Samuel
More information about the Libc-alpha
mailing list