summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-17 10:06:57 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-17 10:06:57 +0000
commit4c3d81d323f2876d5528fc9601cff55c88c6f566 (patch)
tree92eb620a2238c53401118b9ca5c920dbb1ca7d91 /io.c
parenta94679135080615136be4d83a66b3f964b8d66a4 (diff)
modulo, frexp, ldexp
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/io.c b/io.c
index 9f6e05bdd6..41dac663f3 100644
--- a/io.c
+++ b/io.c
@@ -941,22 +941,24 @@ pipe_atexit()
}
}
-#if !defined (__CYGWIN32__)
static void
pipe_finalize(fptr)
OpenFile *fptr;
{
+#if !defined (__CYGWIN32__)
if (fptr->f != NULL) {
pclose(fptr->f);
}
if (fptr->f2 != NULL) {
pclose(fptr->f2);
}
+#else
+ fptr_finalize(fptr);
+#endif
fptr->f = fptr->f2 = NULL;
pipe_del_fptr(fptr);
}
#endif
-#endif
void
io_unbuffered(fptr)
@@ -1076,6 +1078,7 @@ pipe_open(pname, mode)
else fptr->f = f;
}
#if defined (__CYGWIN32__)
+ fptr->finalize = pipe_finalize;
pipe_add_fptr(fptr);
#endif
return (VALUE)port;