Re: bash fails to compile on systems with select() but not pselect()
From:
Larkin Nickle
Subject:
Re: bash fails to compile on systems with select() but not pselect()
Date:
Sat, 22 May 2021 15:00:59 -0400
User-agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2
Line 145 also contains `sigprocmask (SIG_BLOCK, &set, &oset);` under
`#elif defined HAVE_SELECT` even though `set` and `oset` aren't declared
unless we have HAVE_PSELECT.
#if defined (HAVE_PSELECT)
/* XXX - use pselect(2) to block SIGCHLD atomically */
result = pselect (fd + 1, &readfds, (fd_set *)NULL, &exceptfds,
(struct ti
mespec *)NULL, &set);
#elif defined (HAVE_SELECT)
sigprocmask (SIG_BLOCK, &set, &oset);
result = select (fd + 1, &readfds, (fd_set *)NULL, &exceptfds,
(struct tim