New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
system() corrupts exit status after exit() #2060
Comments
From shy@comp1.cig.mot.comThis is a bug report for perl from shy@cig.mot.com, system() corrupts exit status after exit() system() corrupts the exit status of a script if the system calls takes place The following scripts demonstrate the problem when called with any argument. 'ptest2 1' invokes system() in an END block after the script calls exit(1). 'ptest 1' invokes system() in an object destructor after the script calls In both cases, each script's final exit status is 0. I think this behavior I see this problem with perl, version 5.005_02 built for sun4-solaris or ######### ptest2 BEGIN #!/opt/local/bin/perl5 -w main(); sub main { END { ######### ptest2 END ######### ptest BEGIN #!/opt/local/bin/perl5 -w package A; sub new { DESTROY { package main; main(); sub main { ####### ptest END Site configuration information for perl 5.00502: Configured by youngdj at Thu Dec 17 06:12:23 CST 1998. Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration: Locally applied patches: @INC for perl 5.00502: Environment for perl 5.00502: |
From [Unknown Contact. See original ticket]This is a bug report for perl from shy@cig.mot.com, system() corrupts exit status after exit() system() corrupts the exit status of a script if the system calls takes place The following scripts demonstrate the problem when called with any argument. 'ptest2 1' invokes system() in an END block after the script calls exit(1). 'ptest 1' invokes system() in an object destructor after the script calls In both cases, each script's final exit status is 0. I think this behavior I see this problem with perl, version 5.005_02 built for sun4-solaris or ######### ptest2 BEGIN #!/opt/local/bin/perl5 -w main(); sub main { END { ######### ptest2 END ######### ptest BEGIN #!/opt/local/bin/perl5 -w package A; sub new { DESTROY { package main; main(); sub main { ####### ptest END Site configuration information for perl 5.00502: Configured by youngdj at Thu Dec 17 06:12:23 CST 1998. Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration: Locally applied patches: @INC for perl 5.00502: Environment for perl 5.00502: |
Migrated from rt.perl.org#3339 (status was 'resolved')
Searchable as RT3339$
The text was updated successfully, but these errors were encountered: