[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question about Socket fd access in multiple tasks
- Date: Fri, 19 Feb 2010 11:54:09 +1100
- From: chrisj at rtems.org (Chris Johns)
- Subject: Question about Socket fd access in multiple tasks
On 2/19/2010 11:31 AM, Eric Norum wrote:
> The patch looks like a good idea, but even without it I think that it's safe
> to have the other task perform a socket shutdown which will then
cause the
> read in the first task to return an error, right?
I am not sure. I cannot remember if I tried the shutdown call. I seem to
remember there being a problem but I am not sure what it was. I know an
accept and close was a problem.
> The first task would then take care of closing the socket itself.
Yes if the shutdown works.
Chris