From owner-cvs-all Wed Jul 10 23:42:17 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9F9537B400; Wed, 10 Jul 2002 23:42:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6003143E65; Wed, 10 Jul 2002 23:42:12 -0700 (PDT) (envelope-from tjr@FreeBSD.org) Received: from freefall.freebsd.org (tjr@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6B6gCJU039275; Wed, 10 Jul 2002 23:42:12 -0700 (PDT) (envelope-from tjr@freefall.freebsd.org) Received: (from tjr@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6B6gCAD039274; Wed, 10 Jul 2002 23:42:12 -0700 (PDT) Message-Id: <200207110642.g6B6gCAD039274@freefall.freebsd.org> From: "Tim J. Robbins" Date: Wed, 10 Jul 2002 23:42:12 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/sh jobs.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG tjr 2002/07/10 23:42:12 PDT Modified files: bin/sh jobs.c Log: Don't assume the shell's controlling terminal is attached to file descriptor 2. Instead, open /dev/tty. This problem stopped commands in subshells from being executed correctly if standard error was redirected. PR: 36671 Obtained from: NetBSD (but simplified) Revision Changes Path 1.50 +27 -8 src/bin/sh/jobs.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message