From owner-freebsd-bugs@FreeBSD.ORG Tue Feb 17 15:44:10 2009 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF49A10656FD for ; Tue, 17 Feb 2009 15:44:10 +0000 (UTC) (envelope-from takahiro.kurosawa@gmail.com) Received: from mail-qy0-f12.google.com (mail-qy0-f12.google.com [209.85.221.12]) by mx1.freebsd.org (Postfix) with ESMTP id 6C3328FC1C for ; Tue, 17 Feb 2009 15:44:10 +0000 (UTC) (envelope-from takahiro.kurosawa@gmail.com) Received: by qyk5 with SMTP id 5so3349856qyk.19 for ; Tue, 17 Feb 2009 07:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Fd5EleCGth+lMe/CRnH21jnFcXW4x2UnAi7OLQtEL8o=; b=trIU8Fz97qbBmJgoISKaerrnGab5At4Bfu79hdvG/Zv374OHySVpz6BGMi34fKBXHQ uuhTsMREwMef+OrGnrkXxsf3VV5EGC5n9fjJ+GRX/597+p/MgIYpdQwfQBozeBbGtJsv c5kTwQEjNlyrRyNwRCA5xIQLPQtileGtvDjxI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=VHxLGYcfKxXE351RKBjGgW8PjtmAf0h7ZLXtxOspkhkBO+sbTswtwZmuS0ZXYYx0vV xw/eElpgw3xurQRC/hVMS7WEiCGCRj6GIb/lYHgjp9d5j1KYKGlgm7Hbu4ebyvGpK/7L H7VBlnS3QV+4Z4U34gQ9wqb0kMsyLYq9bEIYQ= MIME-Version: 1.0 Received: by 10.224.29.10 with SMTP id o10mr1063312qac.99.1234883996966; Tue, 17 Feb 2009 07:19:56 -0800 (PST) In-Reply-To: <200902081700.n18H0EvJ046014@freefall.freebsd.org> References: <200902081700.n18H0EvJ046014@freefall.freebsd.org> Date: Wed, 18 Feb 2009 00:19:56 +0900 Message-ID: From: Takahiro Kurosawa To: "Arno J. Klaassen" Content-Type: multipart/mixed; boundary=0015175cddd8fa5fb404631ed549 Cc: freebsd-bugs@freebsd.org Subject: Re: kern/131506: pipes in forked procs sometimes hang under Linux emulation 2.6.16 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: Tue, 17 Feb 2009 15:44:11 -0000 --0015175cddd8fa5fb404631ed549 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit It seems that vfork/exec synchronization was changed recently but the linux emulation code keeps using the obsolete mechanism. The attached patch may fix the problem. --0015175cddd8fa5fb404631ed549 Content-Type: text/x-diff; charset=US-ASCII; name="pwaitfix.diff" Content-Disposition: attachment; filename="pwaitfix.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_frapwkae0 PT09IHN5cy9hbWQ2NC9saW51eDMyL2xpbnV4MzJfbWFjaGRlcC5jCj09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lz L2FtZDY0L2xpbnV4MzIvbGludXgzMl9tYWNoZGVwLmMJKHJldmlzaW9uIDE4ODc0MSkKKysrIHN5 cy9hbWQ2NC9saW51eDMyL2xpbnV4MzJfbWFjaGRlcC5jCShsb2NhbCkKQEAgLTU2MCw3ICs1NjAs NyBAQAogCS8qIHdhaXQgZm9yIHRoZSBjaGlsZHJlbiB0byBleGl0LCBpZS4gZW11bGF0ZSB2Zm9y ayAqLwogCVBST0NfTE9DSyhwMik7CiAJd2hpbGUgKHAyLT5wX2ZsYWcgJiBQX1BQV0FJVCkKLQkg ICAJbXNsZWVwKHRkLT50ZF9wcm9jLCAmcDItP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U4MSw3IEBA CiAgICAJICAgCS8qIHdhaXQgZm9yIHRoZSBjaGlsZHJlbiB0byBleGl0LCBpZS4gZW11bGF0ZSB2 Zm9yayAqLwogICAgCSAgIAlQUk9DX0xPQ0socDIpOwogCQl3aGlsZSAocDItPnBfZmxhZyAmIFBf UFBXQUlUKQotICAgCQkgICAJbXNsZWVwKHRkLT50ZF9wcm9jLCAmcDItPnBfbXR4LCBQV0FJVCwg InBwd2FpdCIsIDApOworCQkJY3Zfd2FpdCgmcDItPnBfcHdhaXQsICZwMi0+cF9tdHgpOwogCQlQ Uk9DX1VOTE9DSyhwMik7CiAJfQogCg== --0015175cddd8fa5fb404631ed549--