Add some more necessary locks

This commit is contained in:
Justine Tunney 2022-06-12 22:20:59 -07:00
parent 8b72490431
commit 91953dd308
9 changed files with 29 additions and 15 deletions

View file

@ -20,6 +20,8 @@
#include "libc/calls/calls.h"
#include "libc/dce.h"
#include "libc/log/log.h"
#include "libc/runtime/internal.h"
#include "libc/runtime/runtime.h"
#include "libc/sock/internal.h"
#include "libc/sock/sock.h"
#include "libc/sysv/consts/af.h"
@ -42,6 +44,7 @@ void _firewall(const void *addr, uint32_t addrsize) {
*p++ = '\n';
write(2, b, p - b);
if (weaken(__die)) weaken(__die)();
abort();
__restorewintty();
_Exit(66);
}
}