From 023ceb80f0d82032a841fbab1bfd1282af1def7b Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Thu, 9 Mar 2000 12:54:08 +0000 Subject: avoid autoflushing behavior of fork/system/exec on Solaris (thanks to fflush(NULL) bug) p4raw-id: //depot/perl@5627 --- hints/solaris_2.sh | 23 +++++++++++++++++++++++ pod/perldelta.pod | 9 +++------ 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 5a8cbfab8b..65f8158ff0 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -479,6 +479,29 @@ case "$uselongdouble" in ;; esac +case "$fflushNULL" in +"$define"|true|[yY]*) + # allow them to force it the other way + ;; +*) + # All versions of Solaris appear to have a stdio bug that improperly + # flushes the input end of pipes. So we avoid the autoflush on + # fork/system/exec support for now. :-( See the test case in: + # http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2000-03/msg00373.html + # XXX this needs a Configure test so that more such platforms can be + # caught automatically. + fflushNULL=undef + fflushall=undef + cat >&4 <) >> and C<< close() >> -- cgit v1.2.1