• Simon Marlow's avatar
    fdReady: use poll() instead of select() · f46369b8
    Simon Marlow authored
    select() is limited to 1024 file descriptors.  This actually blew up
    in a very hard-to-debug way in our production system when using the
    hinotify package.
    
    Test Plan:
    libraries/tests pass, paricularly hGetBuf001 which exercises this
    code.
    
    Reviewers: niteria, erikd, austin, hvr, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2785
    
    GHC Trac Issues: #12912
    f46369b8
inputReady.c 6 KB