Cygwin: timerfd: Handle gettime error in settime
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
02de9ac61e
commit
a3268ac392
@ -590,8 +590,8 @@ timerfd_tracker::settime (int flags, const struct itimerspec *new_value,
|
|||||||
ret = -EBADF;
|
ret = -EBADF;
|
||||||
__leave;
|
__leave;
|
||||||
}
|
}
|
||||||
if (old_value)
|
if (old_value && (ret = gettime (old_value)) < 0)
|
||||||
gettime (old_value);
|
__leave;
|
||||||
if (new_value->it_value.tv_sec == 0 && new_value->it_value.tv_nsec == 0)
|
if (new_value->it_value.tv_sec == 0 && new_value->it_value.tv_nsec == 0)
|
||||||
ret = disarm_timer ();
|
ret = disarm_timer ();
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user