reading/writing blocking FDs over FD_SETSIZE is broken (Partially Trac #9169)
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 2 Jul 2014 13:53:34 +0000 (08:53 -0500)
committerAustin Seipp <austin@well-typed.com>
Wed, 2 Jul 2014 13:53:34 +0000 (08:53 -0500)
commitb0316cdb10fbd9eaca7ede28c7bb3eb19f7766bf
tree93cf400ff2d12f8635bddcd10b2b9797c0fae8a6
parent34f7e9a3c99850859901ca74370f55f1d4e2279a
reading/writing blocking FDs over FD_SETSIZE is broken (Partially Trac #9169)

Summary:
libraries/base/cbits/inputReady.c had no limits on file descriptors.
Add a limit as non-threaded RTS does.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Test Plan: none

Reviewers: austin, simonmar

Reviewed By: austin, simonmar

Subscribers: simonmar, relrod, carter

Differential Revision: https://phabricator.haskell.org/D28
libraries/base/cbits/inputReady.c