Fix _Thread_local with fork() on Windows

This commit is contained in:
Justine Tunney 2022-08-21 15:51:44 -07:00
parent 99a92048b4
commit bf757c4646
5 changed files with 51 additions and 2 deletions

View file

@ -29,11 +29,11 @@
#include "libc/sysv/consts/sicode.h"
#include "libc/sysv/consts/sig.h"
privileged unsigned __wincrash(struct NtExceptionPointers *ep) {
unsigned __wincrash(struct NtExceptionPointers *ep) {
int64_t rip;
int sig, code;
ucontext_t ctx;
STRACE("__wincrash");
STRACE("__wincrash rip=%lx", ep->ContextRecord->Rip);
switch (ep->ExceptionRecord->ExceptionCode) {
case kNtSignalBreakpoint: