[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cancelling a blocking read() from a different thread



Julian Smith <jules@op59.net> writes:

> Is there any way of forcing a blocked call to `read(s)' (where `s' is for
> a socket) in a different thread, to return immediately with an error?

have you tried putting the socket in non-blocking mode ?

-p.