From owner-freebsd-stable@FreeBSD.ORG Mon Apr 7 11:06:51 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F53D37B404 for ; Mon, 7 Apr 2003 11:06:51 -0700 (PDT) Received: from cvsup.no.freebsd.org (c2h5oh.idi.ntnu.no [129.241.103.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F19743F75 for ; Mon, 7 Apr 2003 11:06:50 -0700 (PDT) (envelope-from Tor.Egge@cvsup.no.freebsd.org) Received: from localhost (localhost [127.0.0.1])h37I6mai052553; Mon, 7 Apr 2003 18:06:48 GMT (envelope-from tegge@cvsup.no.freebsd.org) To: is@rambler-co.ru From: Tor.Egge@cvsup.no.freebsd.org In-Reply-To: References: X-Mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20030407180648W.tegge@cvsup.no.freebsd.org> Date: Mon, 07 Apr 2003 18:06:48 GMT Sender: Tor Egge X-Dispatcher: imput version 20000228(IM140) Lines: 17 cc: freebsd-stable@freebsd.org Subject: Re: MFC: Sync new socket nonblocking/async state with file flags in accept() X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2003 18:06:51 -0000 > Is this MFC needed in RELENG_4 ? Yes. It fixes a problem triggered by the mysql ports when compiled with the build option WITH_LINUXTHREADS=yes. > I ran the PR 1775 test program on FreeBSD 3.4, 4.2, 4.3, 4.7 with > the same result: The test program is incomplete. mysql changes the listen socket to nonblocking state after the select() but before the accept(). Without this MFC, the file flags will indicate that the new socket is nonblocking but read() will still block. - Tor Egge