summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2003-05-17 13:38:35 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2003-05-17 13:38:35 +0000
commit8a521f284323c7ef06cccf453146cc13958cfd6d (patch)
tree621fe79ca218a7117ce4e05946d5e2ddc64c0afe /perlio.c
parent6a93df2e699ee31021f3373dcafbb41d67f7f951 (diff)
downloadperl-8a521f284323c7ef06cccf453146cc13958cfd6d.tar.gz
Spotted a bare close() where PerlLIO_close() seems correct.
p4raw-id: //depot/perlio@19543
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perlio.c b/perlio.c
index e0cb501c4a..cab42430e6 100644
--- a/perlio.c
+++ b/perlio.c
@@ -432,7 +432,7 @@ PerlIO_findFILE(PerlIO *pio)
/*
* Why is this here - not in perlio.h? RMB
- */
+ */
void PerlIO_debug(const char *fmt, ...)
#ifdef CHECK_FORMAT
__attribute__ ((__format__(__printf__, 1, 2)))
@@ -2946,7 +2946,7 @@ PerlIOStdio_close(pTHX_ PerlIO *f)
}
if (dupfd) {
PerlLIO_dup2(dupfd,fd);
- close(dupfd);
+ PerlLIO_close(dupfd);
}
return result;
}