summary refs log tree commit diff
path: root/src/redir.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-06-27 20:38:23 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2009-06-27 20:38:23 +0800
commit6c0398654015de53269a2ef32eae3c7b560875dd (patch)
treebbfe4fd062df4cc0d0bb9d2c589f135a0de9e42e /src/redir.h
parent[MAN] Update manual page to differentiate dash from ash (diff)
downloaddash-6c0398654015de53269a2ef32eae3c7b560875dd.tar.gz
dash-6c0398654015de53269a2ef32eae3c7b560875dd.zip
[REDIR] Fix incorrect savefd conversions
When I added savefd we may end up closing stderr if that is how
we get to the tty.  This patch fixes by adding a second argument
to indicate what fd should be closed which lets jobs.c get around
the problem.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src/redir.h')
-rw-r--r--src/redir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redir.h b/src/redir.h
index a8e6630..d1d160e 100644
--- a/src/redir.h
+++ b/src/redir.h
@@ -45,6 +45,6 @@ union node;
 void redirect(union node *, int);
 void popredir(int);
 void clearredir(void);
-int savefd(int);
+int savefd(int, int);
 int redirectsafe(union node *, int);