Duncan Coutts pushed to branch wip/dcoutts/io-manager-tidy at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • rts/posix/Poll.c
    ... ... @@ -414,13 +414,13 @@ void pollCompletedTimeoutsOrIOPoll(CapIOManager *iomgr)
    414 414
     
    
    415 415
         if (!isEmptyClosureTable(&iomgr->aiop_table)) {
    
    416 416
     
    
    417
    -        nfds_t nfds = sizeClosureTable(&iomgr->aiop_table) + 1;
    
    418
    -
    
    419 417
     #if defined(HAVE_PREEMPTION)
    
    420 418
             /* the full_poll_table includes interrupt_fd_r */
    
    419
    +        nfds_t nfds = sizeClosureTable(&iomgr->aiop_table) + 1;
    
    421 420
             struct pollfd *poll_table = iomgr->full_poll_table;
    
    422 421
     #else
    
    423 422
             /* the aiop_poll_table does not include interrupt_fd_r */
    
    423
    +        nfds_t nfds = sizeClosureTable(&iomgr->aiop_table) + 0;
    
    424 424
             struct pollfd *poll_table = iomgr->aiop_poll_table;
    
    425 425
     #endif
    
    426 426