This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
781ecc3
)
Cleanup all scopes before exiting a pseudo-forked process.
author
Jan Dubois
<jand@activestate.com>
Wed, 2 Dec 2009 09:34:18 +0000
(
01:34
-0800)
committer
Jan Dubois
<jand@activestate.com>
Wed, 2 Dec 2009 09:34:18 +0000
(
01:34
-0800)
perl_destruct() contains an assertion that the scope stack
is empty. The remaining scopes are due to fork() being
called from within a BEGIN block.
win32/perlhost.h
patch
|
blob
|
blame
|
history
diff --git
a/win32/perlhost.h
b/win32/perlhost.h
index
61f8765
..
5e89f85
100644
(file)
--- a/
win32/perlhost.h
+++ b/
win32/perlhost.h
@@
-1769,6
+1769,11
@@
restart:
switch (status) {
case 0:
CALLRUNOPS(aTHX);
+ /* We may have additional unclosed scopes if fork() was called
+ * from within a BEGIN block. See perlfork.pod for more details.
+ */
+ while (PL_scopestack_ix > oldscope)
+ LEAVE;
status = 0;
break;
case 2: