mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
Fix some win32 definitions
You can now use psapi.dll and pdh.dll. Some TODOs for Windows have been cleared out. We might have a working load average for the platform that should help GNU Make work well.
This commit is contained in:
parent
e2e0b042c1
commit
c23b6ecc31
162 changed files with 847 additions and 153 deletions
|
@ -328,6 +328,7 @@ textwindows int sys_fork_nt(void) {
|
|||
g_fds.p[pid].handle = procinfo.hProcess;
|
||||
g_fds.p[pid].flags = O_CLOEXEC;
|
||||
untrackpid = -1;
|
||||
rc = pid;
|
||||
} else {
|
||||
/*
|
||||
* XXX: Ignoring SIGCHLD should track the process information.
|
||||
|
@ -336,10 +337,10 @@ textwindows int sys_fork_nt(void) {
|
|||
* functions like poll() so it doesn't get zombdied.
|
||||
*/
|
||||
STRACE("fork() parent closing process handle b/c SIGCHLD=SIG_IGN");
|
||||
rc = GetProcessId(procinfo.hProcess);
|
||||
CloseHandle(procinfo.hProcess);
|
||||
}
|
||||
STRACE("fork() parent everything looks good");
|
||||
rc = pid;
|
||||
} else {
|
||||
STRACE("fork() parent ~~failed~~ because writing failed");
|
||||
rc = __winerr();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue