public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug localedata/624] New: vfprintf(): Improper handling of EAGAIN @ 2004-12-28 21:15 whitis at freelabs dot com 2004-12-28 22:00 ` [Bug libc/624] " pere at hungry dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: whitis at freelabs dot com @ 2004-12-28 21:15 UTC (permalink / raw) To: glibc-bugs The vfprintf equivalent of fprintf(4, "load\r") returns 5 instead of -1 on EAGAIN and doesn't retry the operation. The output file was a serial port opened with serial_fd = open("/dev/ttyUSB0", 0_RDWR|O_NOCTTY|O_NONBLOCK); serial_out = fdopen(serial_fd, "w"); serial_in = fdopen(serial_fd, "r"); There is some question as to whether it should retry the operation or return -1 but simply returning no error without retrying is clearly broken behavior. O_NONBLOCK is necessary because the program must be able to read "silence" on the serial port as part of detecting a remote prompt. I.E. to read a prompt of "S>", the program will read "S", ">", EAGAIN, (delay), EAGAIN. It would be better in this case if NONBLOCK didn't affect output at all, of course. The problem came to light when using a program that worked on a 16550 based serial port on a byterunner USB to serial pod which has a driver problem that apparently causes it to stop accepting data as soon as an XOFF is received instead of later when the buffer fills up (which would never happen because the program is designed to never overflow the buffers). -- Summary: vfprintf(): Improper handling of EAGAIN Product: glibc Version: 2.3.2 Status: NEW Severity: normal Priority: P2 Component: localedata AssignedTo: pere at hungry dot com ReportedBy: whitis at freelabs dot com CC: glibc-bugs at sources dot redhat dot com http://sources.redhat.com/bugzilla/show_bug.cgi?id=624 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/624] vfprintf(): Improper handling of EAGAIN 2004-12-28 21:15 [Bug localedata/624] New: vfprintf(): Improper handling of EAGAIN whitis at freelabs dot com @ 2004-12-28 22:00 ` pere at hungry dot com 2005-09-26 16:29 ` drepper at redhat dot com 2006-04-25 18:16 ` drepper at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: pere at hungry dot com @ 2004-12-28 22:00 UTC (permalink / raw) To: glibc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|pere at hungry dot com |gotom at debian dot or dot | |jp Component|localedata |libc http://sources.redhat.com/bugzilla/show_bug.cgi?id=624 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/624] vfprintf(): Improper handling of EAGAIN 2004-12-28 21:15 [Bug localedata/624] New: vfprintf(): Improper handling of EAGAIN whitis at freelabs dot com 2004-12-28 22:00 ` [Bug libc/624] " pere at hungry dot com @ 2005-09-26 16:29 ` drepper at redhat dot com 2006-04-25 18:16 ` drepper at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: drepper at redhat dot com @ 2005-09-26 16:29 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From drepper at redhat dot com 2005-09-26 16:29 ------- You have to provide a test case. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING http://sourceware.org/bugzilla/show_bug.cgi?id=624 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/624] vfprintf(): Improper handling of EAGAIN 2004-12-28 21:15 [Bug localedata/624] New: vfprintf(): Improper handling of EAGAIN whitis at freelabs dot com 2004-12-28 22:00 ` [Bug libc/624] " pere at hungry dot com 2005-09-26 16:29 ` drepper at redhat dot com @ 2006-04-25 18:16 ` drepper at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: drepper at redhat dot com @ 2006-04-25 18:16 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From drepper at redhat dot com 2006-04-25 18:16 ------- No reply in 6+ months. Closing. -- What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution| |INVALID http://sourceware.org/bugzilla/show_bug.cgi?id=624 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-04-25 18:16 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-12-28 21:15 [Bug localedata/624] New: vfprintf(): Improper handling of EAGAIN whitis at freelabs dot com 2004-12-28 22:00 ` [Bug libc/624] " pere at hungry dot com 2005-09-26 16:29 ` drepper at redhat dot com 2006-04-25 18:16 ` drepper 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).