summaryrefslogtreecommitdiff
path: root/unixish.h
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-01-15 14:16:53 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-01-15 14:16:53 +0000
commitc301d6064f299b8a77670348b81d25d2d94d6a2f (patch)
tree4661596c73b9a8b1af9f57407939bb72efd14537 /unixish.h
parentfb54e853c1d154ca0b17cebf36613cf8e29339fe (diff)
downloadperl-c301d6064f299b8a77670348b81d25d2d94d6a2f.tar.gz
extend threads 'veto cleanup' to perl_free and system stuff
p4raw-id: //depot/perl@29827
Diffstat (limited to 'unixish.h')
-rw-r--r--unixish.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/unixish.h b/unixish.h
index 279084ce0b..5f95ba5cad 100644
--- a/unixish.h
+++ b/unixish.h
@@ -132,7 +132,11 @@
#endif
#ifndef PERL_SYS_TERM
-# define PERL_SYS_TERM() HINTS_REFCNT_TERM; OP_REFCNT_TERM; PERLIO_TERM; MALLOC_TERM
+# define PERL_SYS_TERM() \
+ if (!PL_veto_cleanup) { \
+ HINTS_REFCNT_TERM; OP_REFCNT_TERM; PERLIO_TERM; MALLOC_TERM; \
+ }
+
#endif
#define BIT_BUCKET "/dev/null"