diff options
author | Niklas Hambüchen <mail@nh2.me> | 2017-09-19 15:14:27 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-09-19 15:58:46 -0400 |
commit | 022455ffcf01e950ec020f9873874e68fbf7c666 (patch) | |
tree | 8b143e2e9f86b83102e7ead8bb78aee90b4c9c40 /libraries/base/cbits | |
parent | ba4dcc7cb77a37486368911fec854d112a1db93c (diff) | |
download | haskell-022455ffcf01e950ec020f9873874e68fbf7c666.tar.gz |
base: Add more detail to FD_SETSIZE related error message
Reviewers: bgamari, austin, hvr
Reviewed By: bgamari
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D3960
Diffstat (limited to 'libraries/base/cbits')
-rw-r--r-- | libraries/base/cbits/inputReady.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libraries/base/cbits/inputReady.c b/libraries/base/cbits/inputReady.c index 916633c9c0..481c9de90e 100644 --- a/libraries/base/cbits/inputReady.c +++ b/libraries/base/cbits/inputReady.c @@ -80,8 +80,7 @@ fdReady(int fd, int write, int msecs, int isSock) struct timeval remaining_tv; if ((fd >= (int)FD_SETSIZE) || (fd < 0)) { - fprintf(stderr, "fdReady: fd is too big"); - abort(); + barf("fdReady: fd is too big: %d but FD_SETSIZE is %d", fd, (int)FD_SETSIZE); } FD_ZERO(&rfd); FD_ZERO(&wfd); |