Brendan Shanks (@bshanks) commented about dlls/ntdll/unix/sync.c:
case KERN_OPERATION_TIMED_OUT: return STATUS_TIMEOUT;
default: return STATUS_INVALID_HANDLE;
}
ret = kevent( entry->kq, NULL, 0, &wait_event, 1, timeout ? ×pec : NULL );
- } while (ret == -1 && errno == EINTR);
- switch (ret)
- {
- case 1:
return STATUS_ALERTED;
- case 0:
return STATUS_TIMEOUT;
- default:
assert( ret == -1 );
ERR("kevent failed with error: %d (%s)\n", errno, strerror(errno));
Please put spaces after/before the parentheses, just to be consistent with the `TRACE` above.