rts/posix/Itimer.c: Handle EINTR when reading timerfd
authorErik de Castro Lopo <erikd@mega-nerd.com>
Mon, 28 Mar 2016 03:29:37 +0000 (14:29 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 30 Mar 2016 18:51:10 +0000 (05:51 +1100)
commit7aa4c52f9df1705258f43f9c003c17af97401693
tree5e808a6ac030f73986d2c633e9ff50af9cd1e845
parent973633ae3327238162ce0e497ce049265ea3e6ee
rts/posix/Itimer.c: Handle EINTR when reading timerfd

Commit 8626d76a72 added checking of the return value when reading from
the `timer_fd` and calling `sysErrorBelch` to print a warning message.
However some error causes (like EINTR) are benign and should just be
ignored.

Test Plan: validate

Reviewers: hvr, austin, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2040
rts/posix/Itimer.c