bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in close_stdout_status on Solaris 2.7 and 2.8?


From: Shei, Shing-Shong
Subject: Bug in close_stdout_status on Solaris 2.7 and 2.8?
Date: Thu, 22 Aug 2002 15:30:56 -0500

Hi,

I recently compiled and installed textutils 2.1 on Solaris 2.7 and 2.8.
Today we found a strange behavior in the 'cat':

        % cat /usr/demo/SOUND/sounds/ring.au > /dev/audio

(or any small size audio files there) just produces a click sound while
you can hear the correct sound if using /usr/bin/cat or cat from version
1.22 instead.  I have traced the problem to that if I add 'fclose (stderr)'
to the following block; i.e., from

  if (e && __fpending (stdout) == 0)
    return;

to

  if (e && __fpending (stdout) == 0) {
    fclose (stdout);
    return;
  }

then it starts to work.  (It doesn't if I use fflush instead of fclose.)
Is this a problem with Solaris 2.7 and 2.8?  (Since I have compiled it
usgin both gcc and SUN's stock and both failed, I don't think it's a
compilation problem.)

Thanks,
Bruce





reply via email to

[Prev in Thread] Current Thread [Next in Thread]