delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/30/08:48:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 30 May 2003 05:46:54 -0700
From: Dario Alcocer <alcocer AT helixdigital DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: problem suspending "man bash" (intermittent)
Message-ID: <20030530054654.A13094@ns.helixdigital.com>
References: <Pine DOT LNX DOT 4 DOT 44 DOT 0305281034161 DOT 2090-200000 AT ajax DOT its DOT yale DOT edu> <Pine DOT LNX DOT 4 DOT 44 DOT 0305291811280 DOT 18559-100000 AT ares DOT its DOT yale DOT edu>
Mime-Version: 1.0
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 AT helixdigital DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019