Skip to content

Commit

Permalink
Run END phasers when exit terminates a program.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed May 8, 2012
1 parent 4b16cae commit 1b5ab32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/control.pm
Expand Up @@ -158,6 +158,7 @@ sub eval(Str $code, :$lang = 'perl6') {


sub exit($status = 0) {
$_() for pir::perl6ize_type__PP(@*END_PHASERS);
nqp::exit($status.Int);
$status;
}
Expand Down

0 comments on commit 1b5ab32

Please sign in to comment.