More on Job Control...

Christopher Faylor cgf@redhat.com
Tue Apr 10 17:42:00 GMT 2001


On Wed, Apr 11, 2001 at 08:05:49AM +1000, Robert Collins wrote:
>----- Original Message -----
>From: "Christopher Faylor" <cgf@redhat.com>
>To: "Cygwin" <cygwin@cygwin.com>
>Sent: Wednesday, April 11, 2001 3:05 AM
>Subject: Re: More on Job Control...
>
>
>> On Mon, Apr 09, 2001 at 12:46:46PM -0700, Mark Allan Young wrote:
>> >
>> >if I don't use the '&' and then try to suspend it
>> >with <ctrl-z>, it doesn't suspend.
>>
>> A .bat file is not a cygwin application.  Cygwin isn't a special magic
>> program that brings UNIX functionality to everything on your system.
>> CTRL-Z will only work on Cygwin applications.
>>
>> cgf
>>
>
>Hmmm, I wonder. Chris: if we can save the process and main thread handle
>for the child, on Ctrl-Z we could call SuspendThread. I'm happy to
>fiddle around with this (in about 3 weeks :]) unless you think it's a
>bad idea.

You can't reliably suspend a non-cygwin process.  If a program is blocked
in a ReadFile, for instance, it could result in a hang.

There is a bug here, though, as Mark Allan Young pointed out.  .bat files
used to be runnable in 1.1.8 and they aren't in snapshots.

cgf

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



More information about the Cygwin mailing list