From nobody@FreeBSD.ORG Thu Jul 29 18:23:01 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 770A614EFD; Thu, 29 Jul 1999 18:23:00 -0700 (PDT)
Message-Id: <19990730012300.770A614EFD@hub.freebsd.org>
Date: Thu, 29 Jul 1999 18:23:00 -0700 (PDT)
From: rdm@cfcl.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: interactive /bin/sh ignores ^C and ^Z in while loops
X-Send-Pr-Version: www-1.0

>Number:         12877
>Category:       bin
>Synopsis:       interactive /bin/sh ignores ^C and ^Z in while loops
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 29 18:30:00 PDT 1999
>Closed-Date:    Tue Aug 10 15:22:54 MEST 1999
>Last-Modified:  Tue Aug 10 15:23:21 MEST 1999
>Originator:     Rich Morin
>Release:        2.2.8 (also broken in 3.2)
>Organization:
Canta Forda Computer Laboratory
>Environment:
FreeBSD cfcl.com 2.2.8-RELEASE FreeBSD 2.2.8-RELEASE #0: Fri Jan 15 18:39:18 PST
 1999     rdm@cfcl.com:/usr/src/sys/compile/FREEBIE  i386

>Description:
If I type a while loop into sh, then try to ^C or ^Z out, the shell
refuses to go away.  FWIW, the session below is being run in a telnet
window from a Mac, using tcsh as the login shell, but folks on other
systems have replicated the problem.  The bug is present in both
FreeBSD 2.2.8 and 3.2.
>How-To-Repeat:
  % sh
  $ while :; do
  > echo foo
  > sleep 60
  > done
  foo

  [Interrupt Process]		<- ^C hit

  [Interrupt Process]		<- ^C hit

  ^Z%1 Suspended		<- ^Z hit
  foo

  ^Z%2 Suspended		<- ^Z hit
  foo

>Fix:


>Release-Note:
>Audit-Trail:

From: Thomas David Rivers <rivers@dignus.com>
To: freebsd-gnats-submit@FreeBSD.ORG, rdm@cfcl.com
Cc:  
Subject: Re: bin/12877: interactive /bin/sh ignores ^C and ^Z in while loops
Date: Thu, 29 Jul 1999 21:56:46 -0400 (EDT)

 I believe this is the same as PR bin/9173 - submitted last Dec.
 
 Is that the case?
 
 	- Dave Rivers -
 
 

From: "Matthew Emmerton" <matt@gsicomp.on.ca>
To: <freebsd-gnats-submit@freebsd.org>, <rdm@cfcl.com>
Cc:  
Subject: Re: bin/12877: interactive /bin/sh ignores ^C and ^Z in while loops
Date: Sun, 1 Aug 1999 12:18:41 -0400

 This activity occurs on 3.1 as well, but does not occur on 2.2.7, or
 4.0-current (April 99).
 
 --
 Matthew Emmerton      || http://www.gsicomp.on.ca
 GSI Computer Services || P: +1 (800) 217-5409 (Canada)
 Technical Director    || F: +1 (519) 335-6584
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: cracauer 
State-Changed-When: Tue Aug 10 15:22:54 MEST 1999 
State-Changed-Why:  
I committed a fix to these problems on 1999/04/03 to -current and 
1999/07/25 to -stable. 
>Unformatted:
