Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 30 May 2003 05:46:54 -0700
From: Dario Alcocer <alcocer@helixdigital.com>
To: cygwin@cygwin.com
Subject: Re: problem suspending "man bash" (intermittent)
Message-ID: <20030530054654.A13094@ns.helixdigital.com>
References: <Pine.LNX.4.44.0305281034161.2090-200000@ajax.its.yale.edu> <Pine.LNX.4.44.0305291811280.18559-100000@ares.its.yale.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <Pine.LNX.4.44.0305291811280.18559-100000@ares.its.yale.edu>; from lev.bishop@yale.edu on Thu, May 29, 2003 at 11:02:59PM -0400

On Thu, May 29, 2003 at 11:02:59PM -0400, Lev Bishop wrote:
> Here follow detailed results of my experimenting.
> 
> Send the manpage to a file:
> $ man bash > mb
> Use less to look at it:
> $ less mb
> No problems suspending/restarting.
> Use a pipeline in a subshell to view it (the way "man" does it):
> $ (cat mb | less)
> Now we have the almost the same problem as I described in my first 
> message - under xterm the 1st keypress sometimes goes to less instead of 
> to bash, subsequently foregrounding the pipeline less doesn't redraw the 
> screen properly, needs a newline after all commands, etc; under 
> console the pipeline sometimes just dies without any error message.
> 
> More interestingly, if I don't put the pipeline in a subshell, then the 
> problem changes, /and ceases to be intermittent/.
> $ cat mb | less
> Now the problem is the same whether in xterm or console: if I ^Z then the 
> pipeline suspends (both processes shown by ps with an 'S', they stop 
> responding to keypresses) but control doesn't return to bash, and the only 
> way to unwedge things is to use "kill -CONT" from another window. 

I've duplicated this bug. In fact, I'm unable to kill the pipeline,
although in my case, I didn't try CONT first, just KILL.

So, it would appear that one cannot suspend pipelines that have pending
input waiting.

-- 
Dario Alcocer -- Sr. Software Developer, Helix Digital Inc.
alcocer@helixdigital.com -- http://www.helixdigital.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

