Question about Socket fd access in multiple tasks

Chris Johns chrisj at rtems.org
Fri Feb 19 00:54:09 UTC 2010


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



More information about the users mailing list