Subject: CVS commit: [netbsd-2-0] src/bin/sh
To: None <source-changes@NetBSD.org>
From: Matthias Scheler <tron@netbsd.org>
List: source-changes
Date: 08/22/2004 14:14:37
Module Name:	src
Committed By:	tron
Date:		Sun Aug 22 14:14:37 UTC 2004

Modified Files:
	src/bin/sh [netbsd-2-0]: redir.c

Log Message:
Pull up revision 1.29 (requested by chs in ticket #777):
PR/25699: David Laight: sh(1) hangs opening a named pipe as stdin for
background process
This happens because we vfork, and then open a named pipe with O_RDONLY
and block in the child. We avoid this, by opening the file with O_NONBLOCK,
and then reset it if we are vforked. XXX: this is an ugly fix.


To generate a diff of this commit:
cvs rdiff -r1.28 -r1.28.2.1 src/bin/sh/redir.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.