From owner-cvs-all@FreeBSD.ORG Thu Jan 22 13:01:15 2004 Return-Path: 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 C4ED116A4DB; Thu, 22 Jan 2004 13:01:15 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 059C543D39; Thu, 22 Jan 2004 13:01:15 -0800 (PST) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0ML1E0B030351; Thu, 22 Jan 2004 13:01:14 -0800 (PST) (envelope-from cperciva@repoman.freebsd.org) Received: (from cperciva@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0ML1E4E030350; Thu, 22 Jan 2004 13:01:14 -0800 (PST) (envelope-from cperciva) Message-Id: <200401222101.i0ML1E4E030350@repoman.freebsd.org> From: Colin Percival Date: Thu, 22 Jan 2004 13:01:14 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/script script.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2004 21:01:15 -0000 cperciva 2004/01/22 13:01:14 PST FreeBSD src repository Modified files: usr.bin/script script.c Log: Two fixes for script(1): 1. Don't do tty stuff to stdin if stdin isn't a tty. 2. When running in non-interactive mode, don't select(2) on the standard input. This un-breaks non-interactive portupgrade. PR: bin/59036 [1] PR: bin/56166, bin/57414, ports/57415, ports/60534 [2] MFC after: 7 days Approved by: rwatson (mentor) Revision Changes Path 1.21 +22 -11 src/usr.bin/script/script.c