summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/perlio.c b/perlio.c
index f0728baac4..6dec0c6f77 100644
--- a/perlio.c
+++ b/perlio.c
@@ -3614,7 +3614,9 @@ void
PerlIO_init(void)
{
dTHX;
+#ifndef WIN32
call_atexit(PerlIO_cleanup_layers, NULL);
+#endif
if (!_perlio)
{
#ifndef WIN32