Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: <20010410130501 DOT B18200 AT redhat DOT com> <034701c0c20a$67c29200$0200a8c0 AT 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" >To: "Cygwin" >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 , 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