From owner-freebsd-bugs Wed Oct 11 03:10:10 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id DAA03304 for bugs-outgoing; Wed, 11 Oct 1995 03:10:10 -0700 Received: (from gnats@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id DAA03294 ; Wed, 11 Oct 1995 03:10:06 -0700 Resent-Date: Wed, 11 Oct 1995 03:10:06 -0700 Resent-Message-Id: <199510111010.DAA03294@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, "Received:from silvia.HIP.Berkeley.EDU (silvia.HIP.Berkeley.EDU [136.152.64.181]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id DAA02852 for" ; Wed, 11.Oct.1995.03:02:58.-0700 Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.6.12/8.6.9) id DAA20395; Wed, 11 Oct 1995 03:02:54 -0700 Message-Id: <199510111002.DAA20395@silvia.HIP.Berkeley.EDU> Date: Wed, 11 Oct 1995 03:02:54 -0700 From: asami@cs.berkeley.edu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/777: patch doesn't realize stdin is closed Sender: owner-bugs@freebsd.org Precedence: bulk >Number: 777 >Category: bin >Synopsis: patch doesn't realize stdin is closed and asks questions forever >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 11 03:10:03 PDT 1995 >Last-Modified: >Originator: Satoshi Asami >Organization: The Awesome FreeBSD Ports Team >Release: FreeBSD 2.2-CURRENT i386 >Environment: I saw this on a very recent stable (thud) as well. >Description: When you logout while a patch is running, and it has to ask questions, it will try to do that anyway -- and goes into an infinite loop. >How-To-Repeat: % rlogin localhost % cat t #!/bin/sh sleep 5 patch < /usr/ports/net/zircon/patches/patch-aa > log 2>&1 % sh ./t & logout % ls -s log % ls -s log % ls -s log % ls -s log and watch it grow forever as it fills up with these two lines: File to patch: No file found--skip this patch? [n] >Fix: No idea, I took a look at the source but patch does too many funny things with stdio. ;) >Audit-Trail: >Unformatted: