diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-04-03 13:15:30 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-04-03 13:15:30 +0000 |
commit | 62375a601d6dbbc42fa6d70d83d0a60b73d1b86d (patch) | |
tree | 7cf47279ebe56f251304d9b9d314f62c7066ce0a /perlapi.h | |
parent | e5a119301ff5c8127ffae5b126fbb52e5a78c804 (diff) | |
download | perl-62375a601d6dbbc42fa6d70d83d0a60b73d1b86d.tar.gz |
Fix segfaults when mainthread exits with other threads running:
- track number of running threads
- if main thread calls perl_destruct() with other threads running
skip most of cleanup (with a warning).
p4raw-id: //depot/perlio@15698
Diffstat (limited to 'perlapi.h')
-rw-r--r-- | perlapi.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -968,6 +968,8 @@ END_EXTERN_C #define PL_sharehook (*Perl_Gsharehook_ptr(NULL)) #undef PL_thr_key #define PL_thr_key (*Perl_Gthr_key_ptr(NULL)) +#undef PL_threadhook +#define PL_threadhook (*Perl_Gthreadhook_ptr(NULL)) #undef PL_unlockhook #define PL_unlockhook (*Perl_Gunlockhook_ptr(NULL)) |