Commit 022455ff authored by Niklas Hambüchen's avatar Niklas Hambüchen Committed by Ben Gamari

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
parent ba4dcc7c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment