summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorSteffen Ullrich <coyote.frank@gmx.net>2004-12-01 16:22:34 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-01-21 13:49:46 +0000
commit0c49ea6ab2795f5fde8510752a5ebb44587caca8 (patch)
tree7eb9f55f14824325351e95d54f058fc249101190 /perlio.c
parent10ac92784f49d4a1fe54cc1ed7d05f0d3b2a2f29 (diff)
downloadperl-0c49ea6ab2795f5fde8510752a5ebb44587caca8.tar.gz
[Patch] [perl #32446] close leaves fd open
Message-ID: <20041201142236.4273.qmail@lists.develooper.com> p4raw-id: //depot/perl@23844
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/perlio.c b/perlio.c
index 745f62eaee..19c05cb9e4 100644
--- a/perlio.c
+++ b/perlio.c
@@ -2885,6 +2885,13 @@ PerlIOStdio_invalidate_fileno(pTHX_ FILE *f)
*/
f->_file = -1;
return 1;
+# elif defined(__OpenBSD__)
+ /* There may be a better way on OpenBSD:
+ - we could insert a dummy func in the _close function entry
+ f->_close = (int (*)(void *)) dummy_close;
+ */
+ f->_file = -1;
+ return 1;
# elif defined(__EMX__)
/* f->_flags &= ~_IOOPEN; */ /* Will leak stream->_buffer */
f->_handle = -1;