This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: More on Job Control...
- To: Mark Allan Young <myoung at intrinsic dot com>
- Subject: Re: More on Job Control...
- From: Mumit Khan <khan at NanoTech dot Wisc dot EDU>
- Date: Tue, 10 Apr 2001 13:41:10 -0500 (CDT)
- cc: Cygwin <cygwin at sources dot redhat dot com>
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