Browse Source

Try to close the pid in pid_wait on Windows

hoping that will fix the hanging of the MSVC CI
rexim 4 years ago
parent
commit
409f66f832
1 changed files with 1 additions and 0 deletions
  1. 1 0
      nobuild2.h

+ 1 - 0
nobuild2.h

@@ -567,6 +567,7 @@ void pid_wait(Pid pid)
         PANIC("could not wait on child process: %s", GetLastErrorAsString());
     }
 
+    CloseHandle(pid);
 #else
     for (;;) {
         int wstatus = 0;