Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 1995 03:02:54 -0700
From:      asami@cs.berkeley.edu
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/777: patch doesn't realize stdin is closed
Message-ID:  <199510111002.DAA20395@silvia.HIP.Berkeley.EDU>
Resent-Message-ID: <199510111010.DAA03294@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510111002.DAA20395>