delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/28/10:08:25

From: sos AT buggy DOT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: Quitting windows and signals...
28 Apr 1998 10:08:25 -0700 :
Message-ID: <01BD72BE.902BBC60.cygnus.gnu-win32@sos>
To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>,
"'Keet / Foxbird'"
<Keetnet AT wilmington DOT net>

Keet / Foxbird wrote:
>
> Is there any way to get a unix program to respond to quitting windows? Of
> course, writing a windows message handling routine in there could work, 
but
> does it throw up any kind of SIGNAL when windows quits/restarts? If not,
> would it make sense to put one in there (perhaps make it like another 
unix
> equiv.)? Thanks in advance for the help..

Cygwin maps CTRL_C_EVENT and CTRL_BREAK_EVENT into SIGINT, CTRL_CLOSE_EVENT 
and CTRL_SHUTDOWN_EVENT - into SIGHUP, and ignores CTRL_LOGOFF_EVENT. This 
works fine on NT. W95 have a bug - it doesn't raises 
CTRL_CLOSE/SHUTDOWN/LOGOF events.

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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