From owner-cvs-src@FreeBSD.ORG Mon Mar 7 07:26:43 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9474516A4CE; Mon, 7 Mar 2005 07:26:43 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81E7843D2F; Mon, 7 Mar 2005 07:26:43 +0000 (GMT) (envelope-from sobomax@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j277Qhmb059060; Mon, 7 Mar 2005 07:26:43 GMT (envelope-from sobomax@repoman.freebsd.org) Received: (from sobomax@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j277Qhp5059059; Mon, 7 Mar 2005 07:26:43 GMT (envelope-from sobomax) Message-Id: <200503070726.j277Qhp5059059@repoman.freebsd.org> From: Maxim Sobolev Date: Mon, 7 Mar 2005 07:26:43 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/compat/linux linux_socket.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 07:26:43 -0000 sobomax 2005-03-07 07:26:43 UTC FreeBSD src repository Modified files: sys/compat/linux linux_socket.c Log: Handle MSG_NOSIGNAL flag in linux_send() by setting SO_NOSIGPIPE on socket for the duration of the send() call. Such approach may be less than ideal in threading environment, when several threads share the same socket and it might happen that several of them are calling linux_send() at the same time with and without SO_NOSIGPIPE set. However, such race condition is very unlikely in practice, therefore this change provides practical improvement compared to the previous behaviour. PR: kern/76426 Submitted by: Steven Hartland MFC after: 3 days Revision Changes Path 1.56 +25 -2 src/sys/compat/linux/linux_socket.c