ash: [REDIR] Remove redundant CLOEXEC calls
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 26 Oct 2016 13:38:44 +0000 (15:38 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 26 Oct 2016 13:38:44 +0000 (15:38 +0200)
commite19923f6652a638ac39c84012e97f52cf5a7568e
tree5557e71174d5e575d17df65c375593c67561eb17
parent647746076a24a50670a7fab38917606e0ac98be7
ash: [REDIR] Remove redundant CLOEXEC calls

Upstream commit:

    Date: Sun, 6 May 2007 19:28:56 +1000
    [REDIR] Remove redundant CLOEXEC calls

    Now that we're marking file descriptors as CLOEXEC in savefd, we no longer
    need to close them on exec or in setinputfd.

function                                             old     new   delta
ash_main                                            1478    1492     +14
setinputfile                                         224     226      +2
readtoken1                                          2752    2750      -2
shellexec                                            208     198     -10
clearredir                                            30       -     -30
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 2/2 up/down: 16/-42)            Total: -26 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c