Date: Wed, 18 Feb 2009 00:19:56 +0900 From: Takahiro Kurosawa <takahiro.kurosawa@gmail.com> To: "Arno J. Klaassen" <arno@heho.snv.jussieu.fr> Cc: freebsd-bugs@freebsd.org Subject: Re: kern/131506: pipes in forked procs sometimes hang under Linux emulation 2.6.16 Message-ID: <b72f377d0902170719v48fdfd16k4bc1f22c1cff8f3b@mail.gmail.com> In-Reply-To: <200902081700.n18H0EvJ046014@freefall.freebsd.org> References: <200902081700.n18H0EvJ046014@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 ICAJbXNsZWVwKHRkLT50ZF9wcm9jLCAmcDItPnBfbXR4LCBQV0FJVCwgInBwd2FpdCIsIDApOwor CQljdl93YWl0KCZ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HJlbiB0byBleGl0LCBpZS4gZW11bGF0ZSB2 Zm9yayAqLwogICAgCSAgIAlQUk9DX0xPQ0socDIpOwogCQl3aGlsZSAocDItPnBfZmxhZyAmIFBf UFBXQUlUKQotICAgCQkgICAJbXNsZWVwKHRkLT50ZF9wcm9jLCAmcDItPnBfbXR4LCBQV0FJVCwg InBwd2FpdCIsIDApOworCQkJY3Zfd2FpdCgmcDItPnBfcHdhaXQsICZwMi0+cF9tdHgpOwogCQlQ Uk9DX1VOTE9DSyhwMik7CiAJfQogCg== --0015175cddd8fa5fb404631ed549--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b72f377d0902170719v48fdfd16k4bc1f22c1cff8f3b>