summaryrefslogtreecommitdiff
path: root/Python/dup2.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-29 10:43:12 +0000
committerGuido van Rossum <guido@python.org>1994-08-29 10:43:12 +0000
commit6e90de4881d1aae76b547d25343b6dffcd65e605 (patch)
tree88db4cd9536da1ee7819f49b26e16768e85a9bad /Python/dup2.c
parent7910595bafcba52832ae7c14dcb4859474c9ca4a (diff)
downloadcpython-6e90de4881d1aae76b547d25343b6dffcd65e605.tar.gz
MPW changes
Diffstat (limited to 'Python/dup2.c')
-rw-r--r--Python/dup2.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Python/dup2.c b/Python/dup2.c
index ee1a7ad690..85ec5d5e5f 100644
--- a/Python/dup2.c
+++ b/Python/dup2.c
@@ -20,17 +20,12 @@ dup2(fd1, fd2)
int fd1, fd2;
{
if (fd1 != fd2) {
-#ifdef MPW
- close (fd2); /* XXX RJW MPW does not implement F_GETFL but it does have dup */
- fd2 = dup(fd1);
-#else
if (fcntl(fd1, F_GETFL) < 0)
return BADEXIT;
if (fcntl(fd2, F_GETFL) >= 0)
close(fd2);
if (fcntl(fd1, F_DUPFD, fd2) < 0)
return BADEXIT;
-#endif
}
return fd2;
}