[commit: ghc] ghc-8.0: Revert "rtx/posix/Itimer.c: Handle return value of `read`" (eed126e)
git at git.haskell.org
git at git.haskell.org
Thu Apr 21 15:22:29 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-8.0
Link : http://ghc.haskell.org/trac/ghc/changeset/eed126e17865fd2564f66800c1c19b651535bb24/ghc
>---------------------------------------------------------------
commit eed126e17865fd2564f66800c1c19b651535bb24
Author: Ben Gamari <ben at smart-cactus.org>
Date: Thu Apr 21 13:30:43 2016 +0200
Revert "rtx/posix/Itimer.c: Handle return value of `read`"
This reverts commit fd3e581b7c9142247601774afc98e49f63b8af45.
>---------------------------------------------------------------
eed126e17865fd2564f66800c1c19b651535bb24
rts/posix/Itimer.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/rts/posix/Itimer.c b/rts/posix/Itimer.c
index b833295..f6c00a6 100644
--- a/rts/posix/Itimer.c
+++ b/rts/posix/Itimer.c
@@ -202,8 +202,7 @@ static void *itimer_thread_func(void *_handle_tick)
while (1) {
if (USE_TIMERFD_FOR_ITIMER) {
- if (read(timerfd, &nticks, sizeof(nticks)) != sizeof(nticks))
- sysErrorBelch("Itimer: read(timer_fd) failed");
+ read(timerfd, &nticks, sizeof(nticks));
} else {
usleep(TimeToUS(itimer_interval));
}
More information about the ghc-commits
mailing list