Cygwin: timerfd: prepare for TFD_TIMER_CANCEL_ON_SET
Also drop debugging sleep and make sure overrun count is positive. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@ -322,8 +322,6 @@ extern "C" int
|
||||
timerfd_settime (int fd_in, int flags, const struct itimerspec *value,
|
||||
struct itimerspec *ovalue)
|
||||
{
|
||||
/* TODO: There's no easy way to implement TFD_TIMER_CANCEL_ON_SET,
|
||||
but we should at least accept the flag. */
|
||||
if ((flags & ~(TFD_TIMER_ABSTIME | TFD_TIMER_CANCEL_ON_SET)) != 0)
|
||||
{
|
||||
set_errno (EINVAL);
|
||||
|
Reference in New Issue
Block a user