Message ID | 7bd61c96-8c14-aaba-d410-1ec4335a0608@inlv.org (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Herbert Xu |
Headers | show |
Series | [v2] Create block-local FD state when appending redirection closing the FD | expand |
diff --git a/src/redir.c b/src/redir.c index e67cc0a..1e3feac 100644 --- a/src/redir.c +++ b/src/redir.c @@ -57,7 +57,6 @@ #include "error.h" -#define REALLY_CLOSED -3 /* fd that was closed and still is */ #define EMPTY -2 /* marks an unused slot in redirtab */ #define CLOSED -1 /* fd opened for redir needs to be closed */ @@ -136,10 +135,6 @@ redirect(union node *redir, int flags) } } - if (i == newfd) - /* Can only happen if i == newfd == CLOSED */ - i = REALLY_CLOSED; - *p = i; } @@ -352,7 +347,6 @@ popredir(int drop) close(i); break; case EMPTY: - case REALLY_CLOSED: break; default: if (!drop)