mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Fix fork thread handle leak on windows
This commit is contained in:
parent
a15958edc6
commit
538ce338f4
3 changed files with 3 additions and 4 deletions
|
@ -118,7 +118,7 @@ textwindows static errno_t CloneWindows(int (*func)(void *), char *stk,
|
|||
wt->arg = arg;
|
||||
wt->tls = tls;
|
||||
wt->sp = tip & -16;
|
||||
if ((h = CreateThread(&kNtIsInheritable, 65536, (void *)WinThreadEntry, wt,
|
||||
if ((h = CreateThread(0, 65536, (void *)WinThreadEntry, wt,
|
||||
kNtStackSizeParamIsAReservation, &utid))) {
|
||||
atomic_init(ptid, utid);
|
||||
struct CosmoTib *tib = tls;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue