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:
47de4e9
)
END{} can change the return value even if we die from BEGIN{}
author
Artur Bergman
<sky@nanisky.com>
Wed, 29 Aug 2001 07:37:50 +0000
(07:37 +0000)
committer
Artur Bergman
<sky@nanisky.com>
Wed, 29 Aug 2001 07:37:50 +0000
(07:37 +0000)
p4raw-id: //depot/perl@11783
miniperlmain.c
patch
|
blob
|
blame
|
history
diff --git
a/miniperlmain.c
b/miniperlmain.c
index
eec3993
..
f92ea3e
100644
(file)
--- a/
miniperlmain.c
+++ b/
miniperlmain.c
@@
-72,12
+72,10
@@
main(int argc, char **argv, char **env)
}
PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
exitstatus = perl_parse(my_perl, xs_init, argc, argv, (char **)NULL);
- if (!exitstatus)
{
+ if (!exitstatus)
perl_run(my_perl);
- exitstatus = perl_destruct(my_perl);
- } else {
- perl_destruct(my_perl);
- }
+
+ exitstatus = perl_destruct(my_perl);
perl_free(my_perl);