public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug stdio/14504] New: fopencookie does not call the close callback on system cleanup
@ 2012-08-21 20:36 mvr at google dot com
2012-08-21 20:38 ` [Bug stdio/14504] " mvr at google dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: mvr at google dot com @ 2012-08-21 20:36 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14504
Bug #: 14504
Summary: fopencookie does not call the close callback on system
cleanup
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: stdio
AssignedTo: unassigned@sourceware.org
ReportedBy: mvr@google.com
Classification: Unclassified
Whan a file opened with fopencookie is automatically closed on the process
exit, the close callback should be called.
Test code:
int cookie_close(void* cookie) {
printf("closing file %d\n", *(int*)cookie);
return 0;
}
cookie_io_functions_t fns = { NULL, NULL, NULL, cookie_close };
int mycookie = 42;
int main() {
FILE* f = fopencookie(&mycookie, "r", fns);
return 0;
}
Expected output: "closing file 42"
Actual output: empty
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug stdio/14504] fopencookie does not call the close callback on system cleanup
2012-08-21 20:36 [Bug stdio/14504] New: fopencookie does not call the close callback on system cleanup mvr at google dot com
@ 2012-08-21 20:38 ` mvr at google dot com
2012-08-21 21:51 ` mvr at google dot com
2014-06-17 5:56 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: mvr at google dot com @ 2012-08-21 20:38 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14504
Maxim Razin <mvr at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mvr at google dot com
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug stdio/14504] fopencookie does not call the close callback on system cleanup
2012-08-21 20:36 [Bug stdio/14504] New: fopencookie does not call the close callback on system cleanup mvr at google dot com
2012-08-21 20:38 ` [Bug stdio/14504] " mvr at google dot com
@ 2012-08-21 21:51 ` mvr at google dot com
2014-06-17 5:56 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: mvr at google dot com @ 2012-08-21 21:51 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=14504
Maxim Razin <mvr at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Maxim Razin <mvr at google dot com> 2012-08-21 21:51:21 UTC ---
Duplicate of 10325, sorry.
*** This bug has been marked as a duplicate of bug 10325 ***
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug stdio/14504] fopencookie does not call the close callback on system cleanup
2012-08-21 20:36 [Bug stdio/14504] New: fopencookie does not call the close callback on system cleanup mvr at google dot com
2012-08-21 20:38 ` [Bug stdio/14504] " mvr at google dot com
2012-08-21 21:51 ` mvr at google dot com
@ 2014-06-17 5:56 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-17 5:56 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=14504
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-17 5:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-21 20:36 [Bug stdio/14504] New: fopencookie does not call the close callback on system cleanup mvr at google dot com
2012-08-21 20:38 ` [Bug stdio/14504] " mvr at google dot com
2012-08-21 21:51 ` mvr at google dot com
2014-06-17 5:56 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).