gnupg_reopen_std - descriptor state problem

NIIBE Yutaka gniibe at fsij.org
Mon Sep 10 11:12:33 CEST 2018


Marcin Gryszkalis <mg at fork.pl> wrote:
> I'll test the patch and report - but I wonder why you decided to use 
> F_GETFD (and not for example F_GETFL?

I thought that it is the cheapest.  The result of F_GETFD is not related
to any meta data for file or socket.  The result can be determined by
kernel, only examining the object of the file descriptor.  That's my
theory.

And it's portable enough.
-- 



More information about the Gnupg-devel mailing list