mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 04:08:32 +00:00
Reduce makefile dependencies by 10%
The includes in libc/calls/calls.h have now been refactored so that functions with struct parameters are declared in libc/calls/struct/
This commit is contained in:
parent
4e7ce1538c
commit
adac64a52b
202 changed files with 372 additions and 319 deletions
|
@ -41,9 +41,9 @@ void _check_sigchld(void) {
|
|||
int pids[64];
|
||||
uint32_t i, n;
|
||||
int64_t handles[64];
|
||||
_spinlock(&__fds_lock);
|
||||
__fds_lock();
|
||||
n = __sample_pids(pids, handles, true);
|
||||
_spunlock(&__fds_lock);
|
||||
__fds_unlock();
|
||||
if (!n) return;
|
||||
i = WaitForMultipleObjects(n, handles, false, 0);
|
||||
if (i == kNtWaitTimeout) return;
|
||||
|
@ -61,8 +61,8 @@ void _check_sigchld(void) {
|
|||
CloseHandle(handles[i]);
|
||||
__releasefd(pids[i]);
|
||||
}
|
||||
_spinlock(&__fds_lock);
|
||||
__fds_lock();
|
||||
g_fds.p[pids[i]].zombie = true;
|
||||
_spunlock(&__fds_lock);
|
||||
__fds_unlock();
|
||||
__sig_add(SIGCHLD, CLD_EXITED);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue