This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: More on Job Control...

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


Want to unsubscribe from this list?
Check out:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]