Closing a socket.
Joel Sherrill <joel@OARcorp.com>
joel.sherrill at OARcorp.com
Wed May 11 14:21:29 UTC 2005
Chris Johns wrote:
> Hello,
>
> Can a socket be closed by one thread while another thread is blocked in
> the socket (soconnsleep) ?
>
> If not does a way exist to wake the blocked thread or should the thread
> be deleted before closing the socket ?
Hmmm.. run with me here and see if this is correct.
read( on socket ) ends up blocked inside termios. This looks like
it ends on blocking on an rtems_semaphore_obtain, so I would expect
that the underlying semaphore would get deleted and you would wake up.
YMMV. :)
> Regards
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list