Hi Didier, On Mon, Oct 13, 2008 at 5:10 PM, didier <did447@xxxxxxxxx> wrote: > Hi > > In current man page (version 3.11) there's no mention that with > timeout set on sockets (SO_RCVTIMEO, SO_SNDTIMEO) > read, write,send,... aren't restartable. > > from include/net/sock.h > /* Alas, with timeout socket operations are not restartable. > * Compare this to poll(). > */ Yes, you are of course correct. I'd verified this a while back, but just had not got around to writing it up. An analogous behavior occurs with respect to stop signals (see lower in the signal(7) page), if timeouts have been set. Basically, a SO_SNDTIMEO timeout will affect connect() and send*(), and a SO_RCVTIMEO timeout will affect accept() and recv*(). For man-pages-3.12, I've updated the page to note these points. Thanks for your report! Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html