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]

Re: Race conditions in serial_select


On Mon, Jun 27, 2005 at 01:11:39PM -0700, Jay Foster wrote:
> In the existing code, it looks like cbuf is assigned either the value
> &chan->in_cbuf or &chan->out_cbuf, depending on the value of 'which'
> (CYG_FREAD or CYG_FWRITE).  In the proposed patch, it is always assigned the
> value &chan->in_cbuf.  This probably is not what was intended.

Duh!

After a nights sleep i tried again....

        Andrew

Attachment: io.serial.common.diff
Description: Text document


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