mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-12 05:59:10 +00:00
Put more thought into i/o polyfills
wait4() is now solid enough to run `make -j100` on Windows. You can now use MSG_DONTWAIT on Windows. There was a handle leak in accept() that's been fixed. Our WIN32 overlapped i/o code has been simplified. Priority class now inherits into subprocesses, so the verynice command will work and the signal mask will now be inherited by execve() and posix_spawn()
This commit is contained in:
parent
736fdb757a
commit
e961385e55
52 changed files with 679 additions and 487 deletions
|
@ -3,13 +3,8 @@
|
|||
#include "libc/calls/struct/sigset.h"
|
||||
#include "libc/thread/posixthread.internal.h"
|
||||
|
||||
#define __SIG_LOCK_INTERVAL_MS 1000 /* semaphore synchronization: solid */
|
||||
#define __SIG_SIG_INTERVAL_MS 1000 /* posix signal polyfill also solid */
|
||||
#define __SIG_PROC_INTERVAL_MS 1000 /* process waiting also pretty good */
|
||||
#define __SIG_IO_INTERVAL_MS 1000 /* read/write cancel/notify is good */
|
||||
#define __SIG_POLL_INTERVAL_MS 20 /* poll on windows is dumpster fire */
|
||||
#define __SIG_LOGGING_INTERVAL_MS 1700
|
||||
#define __SIG_QUEUE_LENGTH 32
|
||||
#define SIG_HANDLED_NO_RESTART 1
|
||||
#define SIG_HANDLED_SA_RESTART 2
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue