summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorCharles Lane <lane@DUPHY4.Physics.Drexel.Edu>2001-03-01 10:54:09 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2001-03-02 15:51:16 +0000
commit5c0ae288a26eb80423f967ca816c14afb7276b7c (patch)
treecfd1e34986cf50feab119f7c723b73be905eabf5 /vms
parent91b2752fd727c3be466bc3193417272f8aeab087 (diff)
downloadperl-5c0ae288a26eb80423f967ca816c14afb7276b7c.tar.gz
VMS piping ... cleanup at interpreter exit
Message-Id: <010301155258.b8cc1@DUPHY4.Physics.Drexel.Edu> p4raw-id: //depot/perl@8983
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/vms/vms.c b/vms/vms.c
index 43a5c225f6..7915679068 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -1732,6 +1732,18 @@ struct _pipeloc {
};
static pPLOC head_PLOC = 0;
+void
+free_pipelocs(void *head)
+{
+ pPLOC p, pnext;
+
+ p = (pPLOC) head;
+ while (p) {
+ pnext = p->next;
+ Safefree(p);
+ p = pnext;
+ }
+}
static void
store_pipelocs()
@@ -1798,7 +1810,7 @@ store_pipelocs()
p->dir[NAM$C_MAXRSS] = '\0';
}
#endif
-
+ Perl_call_atexit(&free_pipelocs, head_PLOC);
}