summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-12-01 18:43:49 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-12-01 18:43:49 +0000
commitcc3604b14c0748189384ba69182e0ae2c73a4d88 (patch)
tree3c98d9b2228bd2dded53f28930f03155b48dddb9 /pp_ctl.c
parent3c3eec57473df2067943d3a2bb444a3e95a38412 (diff)
downloadperl-cc3604b14c0748189384ba69182e0ae2c73a4d88.tar.gz
avoid "Callback called exit" error on intentional exit()
p4raw-id: //depot/perl@4609
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index b1f71a3819..ec7dfb884a 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2394,6 +2394,7 @@ PP(pp_exit)
anum = 0;
#endif
}
+ PL_exit_flags |= PERL_EXIT_EXPECTED;
my_exit(anum);
PUSHs(&PL_sv_undef);
RETURN;