[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question about Socket fd access in multiple tasks
- Date: Thu, 18 Feb 2010 15:52:34 +0100
- From: peerst at gmail.com (Peer Stritzinger)
- Subject: Question about Socket fd access in multiple tasks
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://www.rtems.org/pipermail/rtems-users/attachments/20100218/e9faf30e/attachment.htm>