summaryrefslogtreecommitdiff
path: root/perlapi.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-16 03:18:41 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-16 03:18:41 +0000
commit1c0ca838512883f7a705e306f80a7c0a95277a87 (patch)
tree22dcb6bd4b328050cf8bbb56ff33c75af672ddef /perlapi.c
parentf433d095c701fc99be6dfb685ceb5f4cb6fafb97 (diff)
downloadperl-1c0ca838512883f7a705e306f80a7c0a95277a87.tar.gz
due to an oversight during PERL_OBJECT migration, hosts created
by pseudo-fork were never being deleted, leading to a sizeable memory leak; std FDs in pseudo-children are now closed automatically to avoid resource leaks; basic infinite looping fork() test works without leaking again in non-PERL_OBJECT build p4raw-id: //depot/perl@5761
Diffstat (limited to 'perlapi.c')
-rw-r--r--perlapi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/perlapi.c b/perlapi.c
index 2ee7060237..0294fce397 100644
--- a/perlapi.c
+++ b/perlapi.c
@@ -606,6 +606,13 @@ Perl_do_binmode(pTHXo_ PerlIO *fp, int iotype, int flag)
{
return ((CPerlObj*)pPerl)->Perl_do_binmode(fp, iotype, flag);
}
+
+#undef Perl_do_close
+bool
+Perl_do_close(pTHXo_ GV* gv, bool not_implicit)
+{
+ return ((CPerlObj*)pPerl)->Perl_do_close(gv, not_implicit);
+}
#if !defined(WIN32)
#endif
#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)