-
Notifications
You must be signed in to change notification settings - Fork 567
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
5.005_63: close(STDERR) causes crash #938
Labels
Comments
From johanv@nl.compuware.comClosing STDERR causes perl to segfault when something needs to be Example: close (STDERR); Perl Info
|
From @gsarOn Mon, 13 Dec 1999 13:18:43 +0100, Johan Vromans CPWR wrote:
Thanks, try this. Sarathy Inline Patch-----------------------------------8<-----------------------------------
Change 4680 by gsar@auger on 1999/12/16 08:26:00
avoid coredump on diagnostics when STDERR is closed
Affected files ...
... //depot/perl/perl.h#210 edit
Differences ...
==== //depot/perl/perl.h#210 (text) ====
Index: perl/perl.h
--- perl/perl.h.~1~ Thu Dec 16 00:26:04 1999
+++ perl/perl.h Thu Dec 16 00:26:04 1999
@@ -1868,6 +1868,7 @@
#ifndef Perl_error_log
# define Perl_error_log (PL_stderrgv \
+ && IoOFP(GvIOp(PL_stderrgv)) \
? IoOFP(GvIOp(PL_stderrgv)) \
: PerlIO_stderr())
#endif
End of Patch. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Migrated from rt.perl.org#1883 (status was 'resolved')
Searchable as RT1883$
The text was updated successfully, but these errors were encountered: