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
STDERR handle duplication issue #6037
Comments
From mike@longenbach.comCreated by mike@longenbach.comI have saved off STDERR to the file handle STDSAVE, and closed STDERR. Then #!perl -w open( STDSAVE, ">&STDERR" ); open FILE, ">foo.file"; if( $foo eq '' ) { print "foo\n"; }; # this line generates a run time close FILE; Perl Info
|
From @eserte"mike@longenbach.com (via RT)" <perlbug@perl.org> writes:
The problem is still in 5.8.0. I guess the following define in perl.h: # define Perl_error_log (PL_stderrgv \ is responsible for this behavior: if there is no valid STDERR, then * Document this behavior. To workaround the problem, always reopen require File::Spec; * Instead of using PerlIO_stderr, use some magic filehandle which * Do not fallback but return NULL and change all occurrences (there Regards, -- |
Migrated from rt.perl.org#18099 (status was 'open')
Searchable as RT18099$
The text was updated successfully, but these errors were encountered: