[PATCH] Use F_GETFD rather than F_GETFL to check validity of file descriptor

Mark Wielaard mark@klomp.org
Tue May 2 14:43:00 GMT 2017

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.



More information about the Elfutils-devel mailing list