With -Ud_stdstdio perl -v and perl -h didn't flush their
Jarkko Hietaniemi [Thu, 6 Jun 2002 02:40:12 +0000 (02:40 +0000)]
output buffers because they exited with PerlProc_exit()
instead of my_exit() (from Andy Dougherty)

p4raw-id: //depot/perl@17028

perl.c

diff --git a/perl.c b/perl.c
index 2354ce5..ee33a9c 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -2359,7 +2359,7 @@ Perl_moreswitches(pTHX_ char *s)
     }  
     case 'h':
        usage(PL_origargv[0]);
-       PerlProc_exit(0);
+       my_exit(0);
     case 'i':
        if (PL_inplace)
            Safefree(PL_inplace);
@@ -2597,7 +2597,7 @@ GNU General Public License, which may be found in the Perl 5 source kit.\n\n\
 Complete documentation for Perl, including FAQ lists, should be found on\n\
 this system using `man perl' or `perldoc perl'.  If you have access to the\n\
 Internet, point your browser at http://www.perl.com/, the Perl Home Page.\n\n");
-       PerlProc_exit(0);
+       my_exit(0);
     case 'w':
        if (! (PL_dowarn & G_WARN_ALL_MASK))
            PL_dowarn |= G_WARN_ON;