From e4a5dab7e3319546187fd5a55ecb6e311c6bdb96 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 21:49:57 +0000 Subject: Apply patch man-pages-3.42-close.patch patch_name: man-pages-3.42-close.patch present_in_specfile: true --- diff --git a/man2/close.2 b/man2/close.2 index bff2755..7f0e73b 100644 --- a/man2/close.2 +++ b/man2/close.2 @@ -120,6 +120,13 @@ other threads in the same process. Since a file descriptor may be reused, there are some obscure race conditions that may cause unintended side effects. +.PP +When dealing with sockets, you have to be sure that there is no +.BR recv (2) +still blocking on it on another thread, otherwise it might block forever, +since no more messages will be send via the socket. Be sure to use +.BR shutdown (2) +to shut down all parts the connection before closing the socket. .\" Date: Tue, 4 Sep 2007 13:57:35 +0200 .\" From: Fredrik Noring .\" One such race involves signals and ERESTARTSYS. If a file descriptor