This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: simultaneous socket write/close causes panic?
On Tue, 2002-10-29 at 07:30, Andrew Lunn wrote:
> On Tue, Oct 29, 2002 at 12:16:30AM -0800, NavEcos wrote:
> > Correct me if I'm wrong (because I might be), but isn't this
> > inherently a race condition in the first place? These seems like an
> > application programmer error to me, not an error of eCos.
>
> It should not cause a panic. Either the write should succeed, or it
> should return an err code saying the file is closed. These operations
> should be atomic with respect to each other.
>
I agree, which is why I said that it would be nice to see if it
still happens with the new stack. Spending any time/effort debugging
the old stack is wasteful (IMO).
--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
gthomas@ecoscentric.com |
http://www.ecoscentric.com/ |
------------------------------------------------------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss