Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Tue, 10 Apr 2001 20:42:59 -0400
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: More on Job Control...
Message-ID: <20010410204259.B22728@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <NDEILJKIAMKIMKIDIGNCIEGBCPAA.myoung@intrinsic.com> <20010410130501.B18200@redhat.com> <034701c0c20a$67c29200$0200a8c0@lifelesswks>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <034701c0c20a$67c29200$0200a8c0@lifelesswks>; from robert.collins@itdomain.com.au on Wed, Apr 11, 2001 at 08:05:49AM +1000

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

