Bug in close_stdout_status on Solaris 2.7 and 2.8?
"Shei, Shing-Shong" <[email protected]>
| Newsgroups | gmane.comp.gnu.textutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
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