mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 02:40:28 +00:00
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:
parent
eb62e71247
commit
d21ac5838c
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue