backout rev 1.14, it's breaking things.
This commit is contained in:
parent
c9686721ef
commit
8f5c93f79f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user