Connor Lane Smith wrote: > This code was brought up a few months ago [1]. The return value is > ignored because, as STDIN_FILENO is 0 and has just been closed, the > returned new file descriptor must be 0. A number of us think that the > implicitness here is a mistake, and that dup2 should be used instead > of close & dup, but the devs apparently disagree. > > [1]: http://lists.suckless.org/dev/1504/26505.html
Heyho, Maybe this should be explained in a comment then? --Markus