delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/10/22:12:09

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
Date: Tue, 10 Apr 2001 20:42:59 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: More on Job Control...
Message-ID: <20010410204259.B22728@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <NDEILJKIAMKIMKIDIGNCIEGBCPAA DOT myoung AT intrinsic DOT com> <20010410130501 DOT B18200 AT redhat DOT com> <034701c0c20a$67c29200$0200a8c0 AT lifelesswks>
Mime-Version: 1.0
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 AT redhat DOT com>
>To: "Cygwin" <cygwin AT cygwin DOT 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

- Raw text -


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