Question about Socket fd access in multiple tasks

Peer Stritzinger peerst at gmail.com
Thu Feb 18 14:52:34 UTC 2010


Hi,

consider the following scenario:

Task1:

socket -> bind -> listen -> accept -> filedesc

r/w on filedesc

then

blocking on read from filedesc ....


Later in Task2:

close(filedesc)

My question is: will the read cleanly unblock Task1 and the socket close?

I could do experiments, but then I'll still not know if this will work in
all RTEMS versions and if it is intended API behaviour.

Thank you for your comments/answers on this.

Regards
Peer Stritzinger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20100218/e9faf30e/attachment.html>


More information about the users mailing list