Re: send(), sendmsg(), sendto() not thread-safe

From: Christoph Hellwig
Date: Tue May 16 2006 - 16:08:46 EST

On Mon, May 15, 2006 at 02:39:06PM -0700, Mark A Smith wrote:
> I discovered that in some cases, send(), sendmsg(), and sendto() are not
> thread-safe. Although the man page for these functions does not specify
> whether these functions are supposed to be thread-safe, my reading of the
> POSIX/SUSv3 specification tells me that they should be. I traced the
> problem to tcp_sendmsg(). I was very curious about this issue, so I wrote
> up a small page to describe in more detail my findings. You can find it at:
> .

Please don't confuse thread safety with atomicy, thanks.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at