backout rev 1.14, it's breaking things.

This commit is contained in:
Alfred Perlstein 2001-12-24 22:27:04 +00:00
parent c9686721ef
commit 8f5c93f79f

View File

@ -145,8 +145,11 @@ redirect(redir, flags)
}
if (!try) {
sv->renamed[fd] = i;
close(fd);
}
INTON;
} else {
close(fd);
}
if (fd == 0)
fd0_redirected++;
@ -183,7 +186,6 @@ openredirect(redir, memory)
error("cannot open %s: %s", fname, errmsg(errno, E_OPEN));
movefd:
if (f != fd) {
close(fd);
copyfd(f, fd);
close(f);
}