mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 08:48:29 +00:00
Write more redbean unit tests
- Fix DescribeSigset() - Introduce new unix.rmrf() API - Fix redbean sigaction() doc example code - Fix unix.sigaction() w/ more than two args - Improve redbean re module API (non-breaking) - Enhance Lua with Python string multiplication - Make third parameter of unix.socket() default to 0
This commit is contained in:
parent
c5b9902ac9
commit
1c83670229
20 changed files with 738 additions and 204 deletions
|
@ -65,6 +65,7 @@ relegated void RestoreDefaultCrashSignalHandlers(void) {
|
|||
int e;
|
||||
size_t i;
|
||||
sigset_t ss;
|
||||
--__strace;
|
||||
sigemptyset(&ss);
|
||||
sigprocmask(SIG_SETMASK, &ss, NULL);
|
||||
for (i = 0; i < ARRAYLEN(kCrashSigs); ++i) {
|
||||
|
@ -74,10 +75,10 @@ relegated void RestoreDefaultCrashSignalHandlers(void) {
|
|||
errno = e;
|
||||
}
|
||||
}
|
||||
++__strace;
|
||||
}
|
||||
|
||||
static void FreeSigAltStack(void *p) {
|
||||
InstallCrashHandlers(0);
|
||||
sigaltstack(&g_oldsigaltstack, 0);
|
||||
munmap(p, GetStackSize());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue