On Thu, 2017-04-20 at 15:58 +0200, Ulf Hermann wrote: > F_GETFD is both cheaper and easier to port, and otherwise has the same > effect here.
At least for the specific case of checking for failure with errno == EBADF it is identical. Applied to master. Thanks, Mark