Displaying 2 results from an estimated 2 matches for "really_closed".
2020 Mar 28
0
[klibc:update-dash] dash: redir: Handle nested exec within REALLY_CLOSED redirection
...t;h=9a5ae0a757f8e021a83941d34a5876760445ddb6
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Fri, 18 Jan 2019 13:01:18 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:55 +0000
[klibc] dash: redir: Handle nested exec within REALLY_CLOSED redirection
[ dash commit 48875c1201930d1e71d358eb1cf3eacc166795be ]
The value of REALLY_CLOSED is used to avoid an unnecessary close(2)
call when restoring redirections. However, as it stands it can
remove a close(2) call that's actually needed. This happens when
an enclosed exec(1) comman...
2007 Aug 23
0
[git patch] klibc dash 0.5.4 update
...file descriptor that was
previously closed, it won't be closed after that redirection goes
out of effect. This is because we don't keep track of closed file
descriptors properly as we do for open ones.
This patch fixes this by introducing two new states, CLOSED and
REALLY_CLOSED. The first represents an initially closed descriptor
which is now open while the second one represents an initally closed
descriptor which is now closed.
This patch is based on work by Rainer Weikusat.
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
S...