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?
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: NavEcos <ecos at navosha dot com>
- Cc: Brij Bihari Pandey <fuzzhead012 at yahoo dot com>, Gary Thomas <gthomas at ecoscentric dot com>, Grant Edwards <grante at visi dot com>, eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 29 Oct 2002 15:30:58 +0100
- Subject: Re: [ECOS] simultaneous socket write/close causes panic?
- References: <20021029073637.60313.qmail@web21006.mail.yahoo.com> <200210290016.30158.ecos@navosha.com>
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.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss