This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix for non-blocking serial write result code


Attached for your review is a fix for non-blocking serial writes. 
Currently, if the output stream on a non-blocking serial device cannot
accept any data, serial_write() will return ENOERR with 0 bytes
written.

The correct behavior is for serial_write() to return EAGAIN.  This bug
looks like a copy-paste error that was introduce in rev 1.18 of
serial.c.

Thanks,

--
Dan Jakubiec
Systech Corp

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

Attachment: serial_write.pat
Description: serial_write.pat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]