Ted Unangst(t...@tedunangst.com) on 2015.09.17 21:12:28 -0400:
> Sebastian Benoit wrote:
> > ok, but in other places we have closefrom(STDERR_FILENO + 1)
> 
> is that really more clear? it only makes sense if you know stderr is 2.

sure, but writing closefrom(3) requires the same or equivalent knowledge, no?
 
> if you sometimes forget which is 1 and which is 2, then the macro only makes
> it more confusing because now you have to decide what comes after stderr. is
> it stdin? or stdout?

if you sometimes forget whats 1 and 2 you have probably more problems than
that ;-)

anyway, i only wanted to point this out, in case someone thinks this is some
matter of style. i'm fine with the 3.

Reply via email to