delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/06/11:31:42

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
Message-Id: <4.3.1.2.20010306112443.025e1ea8@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Tue, 06 Mar 2001 11:26:03 -0500
To: linguist-cygwin AT rich-paul DOT net, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Beat me, whip me, interrupt my program!
In-Reply-To: <Pine.LNX.4.20.0103060821020.23349-100000@monster.rich-paul
.net>
Mime-Version: 1.0

At 08:35 AM 3/6/2001, linguist-cygwin AT rich-paul DOT net wrote:
>Hey, y'all, my company uses cygwin for our build environment, but has not yet
>authorized me to use gcc for projects (many of which are multi-threaded), so
>I'm still stuck with Visual ScrewedIO.
>
>I do, however, want to be able to use console executables I produce in shell
>scripts.  The problem is this:
>
>using windoze 2000 (lord deliver me), cygwin b20
>
>If I use the chain
>
>dbundump -f foo.sql && dbscript -f bar.sql && dbdump -f foo.sql
>
>to modify a database dump, and I control-c the dbundump process, the rest of
>the chain continues.  I have tried using the win32 function
>SetConsoleCtrlHandler to set a ctrl-c handler, but to no avail.  The handler is
>not called when ctrl-c is pressed, if the program is run under bash.  However,
>if I run it "cmd /c dbundump" and ctrl-c it, I do see the output produced by my
>handler.  
>
>I have called and checked GetConsoleMode(), to see if I inherited something
>strange, and it returns 7 (which is normal).  I have tried hooking the signals
>unix style, but the signals are not forthcoming either.  They, also, come when
>I run under cmd (if my ConsoleCtrlHandler returns ... uhh ... whatever it's
>supposed to return to get the signals).  I have done the nt-only
>SetConsoleCtrlHandler(0,true) to turn off ignoration of ctrl-c, and having seen
>that fail I tried SetConsoleCtrlHandler(0,false) for good measure.  There seems
>to be nothing I can do (short of whatever cmd does when IT runs ... my kingdom
>for the source) to get the environment I'm running under to look like it's
>supposed to.
>
>So this is my last resort ... thank you for your time, and for a product that
>reduces my vomit production as a reluctant windoze programmer by about 40%!



Have you tried the latest release?  If your problems are related to signals
and Cygwin's capabilities here, there's been *allot* of work done here since
B20.



Larry


--
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