summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2001-10-21 14:52:35 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2001-10-21 14:52:35 +0000
commita1ea730d96bcc07b3d616a92ace3927de8290cdd (patch)
tree725e0b5ba356e7a24c6a9304ad5403ca773cb006 /sv.c
parent7fcdafbdb0bffcc321d3a9c54e5d13442d621313 (diff)
downloadperl-a1ea730d96bcc07b3d616a92ace3927de8290cdd.tar.gz
PerlIO layer table as PL_perlio (per-interpreter)
p4raw-id: //depot/perlio@12544
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 8ddbfa9f4d..3ab9f057f2 100644
--- a/sv.c
+++ b/sv.c
@@ -9765,9 +9765,12 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
PL_origargv[i] = SAVEPV(proto_perl->Iorigargv[i]);
}
-
param->stashes = newAV(); /* Setup array of objects to call clone on */
+#ifdef PERLIO_LAYERS
+ /* Clone PerlIO table as soon as we can handle general xx_dup() */
+ PerlIO_clone(aTHX_ proto_perl->Iperlio, param);
+#endif
PL_envgv = gv_dup(proto_perl->Ienvgv, param);
PL_incgv = gv_dup(proto_perl->Iincgv, param);