Re: Closing a socket

James Stevenson (mistral@stev.org)
Thu, 18 Jul 2002 19:01:28 +0100


Hi

either use non-blocking sockets
or send a signal to the other process
to make it exit from the read.

> I have implemented a new socket address family and have noted that
> from a multi-threaded application, if a thread calls close(fd) while a
> second thread has a blocking read outstanding, the sockets release() is
not
> called. Is this correct? How can one unblock the read in order to do the
> close.
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/