From 6c0398654015de53269a2ef32eae3c7b560875dd Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sat, 27 Jun 2009 20:38:23 +0800 Subject: [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 --- src/redir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/redir.h') 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); -- cgit 1.4.1