On 7/30/06, Paul D. Smith <[EMAIL PROTECTED]> wrote:
...
db> Here's the relevant code (seeing it again for the first time in a
db> while, I think the lseek is redundant).
No, it's not. If the target FD is open then dup2() will unceremoniously
close it before dup'ing it.
...which is why fcntl(fd, F_DUPFD, min_fd) exists. I'm not sure when
that fnctl() command was first standardized, but I see it in the SUSv2
spec...
Philip Guenther
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make