Re: [GHC] #11697: rts/posix/Itimer.c: ignoring return value of ‘read’

GHC ghc-devs at haskell.org
Thu Mar 10 22:18:13 UTC 2016


#11697: rts/posix/Itimer.c: ignoring return value of ‘read’
-------------------------------------+-------------------------------------
        Reporter:  erikd             |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Runtime System    |              Version:  8.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by erikd):

 Probably a better solution:

 {{{
         if (USE_TIMERFD_FOR_ITIMER) {
             int MAYBE_UNUSED rc;
             rc = read(timerfd, &nticks, sizeof(nticks)) !=
 sizeof(nticks));
          } else {
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11697#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list