delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/10/18:29:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs
Date: Tue, 10 Apr 2001 13:41:10 -0500 (CDT)
From: Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>
To: Mark Allan Young <myoung AT intrinsic DOT com>
cc: Cygwin <cygwin AT sources DOT redhat DOT com>
Subject: Re: More on Job Control...
In-Reply-To: <NDEILJKIAMKIMKIDIGNCIEGBCPAA.myoung@intrinsic.com>
Message-ID: <Pine.HPP.3.96.1010410133522.9813F-100000@hp2.xraylith.wisc.edu>
MIME-Version: 1.0

On Mon, 9 Apr 2001, Mark Allan Young wrote:

> I was baffled about the job control issue, having read that it
> did indeed work.  I verified that my CYGWIN environment variable
> was set...and yet, still I couldn't suspend a job.
> 
> then I noticed that the bat file I use to start up a cygwin
> shell window was setting the CYGWIN variable to '"tty"', instead
> of just 'tty'.  I changed this and I could suspend a sleep command.
> 
> After this revelation, I found a couple of other strange things.
> 
> First, if I type:
> 
> 	sleep 100 &
> 
> it sleeps for 100 seconds in the background.
> 
> but if I type:
> 
> 	sleep 100
> 	<ctrl-z>
> 	fg
> 	
> it terminates immediately after the fg command.
> it does the same if I put in the background with 'bg'.

You found a pathological case to test the job control, sorry. It's an 
issue with sleep implementation, not the underlying job control. GNU 
sleep, one that comes with Cygwin and Linux, does not do the right/
expected thing, while sleep implementations in most commercial Unices
do.

Regards,
Mumit




--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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