Re: [dev] [PATCH 1/1] remove useless dup()

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Wed, 8 Jul 2015 11:56:59 +0200

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
Received on Wed Jul 08 2015 - 11:56:59 CEST

This archive was generated by hypermail 2.3.0 : Wed Jul 08 2015 - 12:00:11 CEST