Try to make travis happy (& fix potential UB)

We need to check that 0 < in < FD_SETSIZE, otherwise this won't work as
expected.