From 0f262e8a3f022e576206675767d87fc99df69ed7 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sun, 6 May 2007 12:01:37 +1000 Subject: [REDIR] Remove EMFILE special case No caller of copyfd need to ignore EMFILE so we can remove the special case and just let it call sh_error on any error. --- src/input.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/input.c') diff --git a/src/input.c b/src/input.c index 057da71..49a2972 100644 --- a/src/input.c +++ b/src/input.c @@ -439,8 +439,6 @@ setinputfile(const char *fname, int flags) if (fd < 10) { fd2 = copyfd(fd, 10); close(fd); - if (fd2 < 0) - sh_error("Out of file descriptors"); fd = fd2; } setinputfd(fd, flags & INPUT_PUSH_FILE); -- cgit 1.4.1