Update redbean to add reporting for unpledged sigaction

Previously it would abort without indicating what signal it failed to
install when sigaction is not pledged (although it fails all of them).
This commit is contained in:
Paul Kulchenko 2023-06-01 23:32:19 -07:00
parent eb62e71247
commit d21ac5838c

View file

@ -7182,7 +7182,8 @@ static int WindowsReplThread(void *arg, int tid) {
static void InstallSignalHandler(int sig, void *handler) {
struct sigaction sa = {.sa_sigaction = handler};
CHECK_NE(-1, sigaction(sig, &sa, 0));
if (sigaction(sig, &sa, 0) == -1)
WARNF("(srvr) failed to set signal handler #%d: %m", sig);
}
static void SigInit(void) {