projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10ac927
)
[Patch] [perl #32446] close leaves fd open
author
Steffen Ullrich
<coyote.frank@gmx.net>
Wed, 1 Dec 2004 15:22:34 +0000
(16:22 +0100)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Fri, 21 Jan 2005 13:49:46 +0000
(13:49 +0000)
Message-ID: <
20041201142236
.4273.qmail@lists.develooper.com>
p4raw-id: //depot/perl@23844
perlio.c
patch
|
blob
|
history
diff --git
a/perlio.c
b/perlio.c
index
745f62e
..
19c05cb
100644
(file)
--- 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;