This caused the child process to exit with a 127 exit status on OpenBSD
and Solaris.
* lib/spawni.c (__spawni): Use < instead of <= when comparing the signal
number to NSIG.
+2025-10-29 Collin Funk <collin.funk1@gmail.com>
+
+ posix_spawn: Don't give sigismember an invalid signal number.
+ This caused the child process to exit with a 127 exit status on OpenBSD
+ and Solaris.
+ * lib/spawni.c (__spawni): Use < instead of <= when comparing the signal
+ number to NSIG.
+
2025-10-28 Paul Eggert <eggert@cs.ucla.edu>
openat2: port O_TMPFILE check to non-GNU/Linux
memset (&sa, '\0', sizeof (sa));
sa.sa_handler = SIG_DFL;
- for (sig = 1; sig <= NSIG; ++sig)
+ for (sig = 1; sig < NSIG; ++sig)
if (sigismember (&attrp->_sd, sig) != 0
&& sigaction (sig, &sa, NULL) != 0)
_exit (SPAWN_ERROR);