From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 22 01:10:04 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9938816A420 for ; Wed, 22 Feb 2006 01:10:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 205F243D49 for ; Wed, 22 Feb 2006 01:10:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1M1A3lu055671 for ; Wed, 22 Feb 2006 01:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1M1A3jd055670; Wed, 22 Feb 2006 01:10:03 GMT (envelope-from gnats) Resent-Date: Wed, 22 Feb 2006 01:10:03 GMT Resent-Message-Id: <200602220110.k1M1A3jd055670@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ian West Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E31C716A473 for ; Wed, 22 Feb 2006 01:04:22 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C013943D45 for ; Wed, 22 Feb 2006 01:04:22 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k1M14M6F063745 for ; Wed, 22 Feb 2006 01:04:22 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k1M14MZi063744; Wed, 22 Feb 2006 01:04:22 GMT (envelope-from nobody) Message-Id: <200602220104.k1M14MZi063744@www.freebsd.org> Date: Wed, 22 Feb 2006 01:04:22 GMT From: Ian West To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/93685: select on pipe write fails from '0' end X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2006 01:10:04 -0000 >Number: 93685 >Category: kern >Synopsis: select on pipe write fails from '0' end >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 22 01:10:03 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Ian West >Release: 6.1pre >Organization: >Environment: FreeBSD 6.1-PRERELEASE Sun Feb 5 >Description: I have an application which has always opened a pipe and used the 0 index as the writer and the 1 index as the reader when forking. Admittedly this is against the recommendation, but with previous versions of BSD it has been fine (up to 4.11). With this code migrated to 6.1PRE, the select for write never returns true. If I swap the fd's around the problem is resolved. Easy for me to sort out, but could be a problem for bidirectional pipe users ? >How-To-Repeat: Configure a pipe the 'wrong' way around. Write to fd[0] on the source end, try and configure this for non-blocking using select on write buffer available. Using fd[1] from the pipe command works correctly. 4.11 works either way. >Fix: >Release-Note: >Audit-Trail: >Unformatted: