This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12724] fclose violates POSIX 2008 on seekable input streams
- From: "matz at suse dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 12 Aug 2011 15:31:21 +0000
- Subject: [Bug libc/12724] fclose violates POSIX 2008 on seekable input streams
- Auto-submitted: auto-generated
- References: <bug-12724-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12724
Michael Matz <matz at suse dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |matz at suse dot de
--- Comment #3 from Michael Matz <matz at suse dot de> 2011-08-12 15:31:21 UTC ---
Over at SuSE we ran into issues with this change. See
https://bugzilla.novell.com/show_bug.cgi?id=711829
. Ruby does a dup/fdopen, but then doesn't do any reading/writing with
the new stream, and when it gets fclosed the file position is reset also
for the other stream associated with the same file. That one does
reads/writes.
I believe that's exactly the interaction between active/inactive streams
that http://austingroupbugs.net/view.php?id=87#c895 is talking about.
Now, that may or may not be useless code in ruby, but there we are.
The current half-POSIX-compliant way is worse than either the non-compliant
or the compliant way.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.