Make small fixes

This commit is contained in:
Justine Tunney 2022-04-17 10:33:12 -07:00
parent 80308079ec
commit ab38f0823d
5 changed files with 7 additions and 6 deletions

View file

@ -32,10 +32,7 @@ __msabi extern typeof(CloseHandle) *const __imp_CloseHandle;
textwindows bool32 CloseHandle(int64_t hObject) {
bool32 ok;
ok = __imp_CloseHandle(hObject);
if (!ok) {
__winerr();
if (weaken(__die)) weaken(__die)();
}
if (!ok) __winerr();
NTTRACE("CloseHandle(%ld) → %hhhd% m", hObject, ok);
return ok;
}

View file

@ -35,6 +35,7 @@
* both the newly created socket and the server one
* @return client fd which needs close(), or -1 w/ errno
* @asyncsignalsafe
* @restartable (unless SO_RCVTIMEO)
*/
int accept4(int fd, void *out_addr, uint32_t *inout_addrsize, int flags) {
int rc;