diff options
author | Steffen Ullrich <coyote.frank@gmx.net> | 2004-12-01 16:22:34 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-01-21 13:49:46 +0000 |
commit | 0c49ea6ab2795f5fde8510752a5ebb44587caca8 (patch) | |
tree | 7eb9f55f14824325351e95d54f058fc249101190 /perlio.c | |
parent | 10ac92784f49d4a1fe54cc1ed7d05f0d3b2a2f29 (diff) | |
download | perl-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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |