Samuel Thibault <samuel.thiba...@gnu.org> skribis: > Ludovic Courtès, le mar. 13 oct. 2020 15:41:37 +0200, a ecrit: >> ‘pthread_kill’ passes the signal number to ‘_hurd_raise_signal’, which >> assumes it is valid: > [...] >> I suppose that before calling ‘sigaddset’, it should check whether SIGNO >> is within bounds, along the lines of: >> >> if (signo < 2 || signo >= _NSIG) >> return EINVAL; >> >> Does that make sense? > > Probably, yes. Why excluding SIGHUP?
Oops, an oversight: I was looking at ‘signum-generic.h’ and the first definition is SIGINT (2). :-) Ludo’.