a51974
diff -ur man-pages-3.42.orig/man2/close.2 man-pages-3.42/man2/close.2
a51974
--- man-pages-3.42.orig/man2/close.2	2012-08-14 00:39:35.000000000 +0200
a51974
+++ man-pages-3.42/man2/close.2	2012-09-13 19:16:38.136978496 +0200
a51974
@@ -114,6 +114,13 @@
a51974
 Since a file descriptor may be reused,
a51974
 there are some obscure race conditions
a51974
 that may cause unintended side effects.
a51974
+.PP
a51974
+When dealing with sockets, you have to be sure that there is no
a51974
+.BR recv (2)
a51974
+still blocking on it on another thread, otherwise it might block forever,
a51974
+since no more messages will be send via the socket. Be sure to use
a51974
+.BR shutdown (2)
a51974
+to shut down all parts the connection before closing the socket.
a51974
 .\" Date: Tue, 4 Sep 2007 13:57:35 +0200
a51974
 .\" From: Fredrik Noring <noring@nocrew.org>
a51974
 .\" One such race involves signals and ERESTARTSYS. If a file descriptor