author | Sebastian Harl <sh@tokkee.org> | |
Tue, 20 Nov 2007 07:45:22 +0000 (08:45 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 20 Nov 2007 08:04:43 +0000 (09:04 +0100) | ||
commit | 6fed6432dfcacafebe5d963557a94e5c4c277e21 | |
tree | bea86a2a2b2bd1e378abc5418e8ecb0403177e18 | tree | snapshot |
parent | 149eea1300930abaef37ff9ccb988d952f66125b | commit | diff |
perl plugin: Execute END blocks in main thread only.
Each END block is executed during perl_destruct() which happens once for each
ithread. As the number of ithreads are in no way related to any Perl plugins
this is not what we want. Now, each END block is only executed when the main
threads terminates (which happens after any other Perl thread has been shut
down).
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Each END block is executed during perl_destruct() which happens once for each
ithread. As the number of ithreads are in no way related to any Perl plugins
this is not what we want. Now, each END block is only executed when the main
threads terminates (which happens after any other Perl thread has been shut
down).
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/perl.c | diff | blob | history |