This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: Handling CTRL_LOGOFF_EVENT
- To: Curtis Galloway <curtis@pdi.com>, Sergey Okhapkin <sos@lab254.bellcore.com>
- Subject: Re: Handling CTRL_LOGOFF_EVENT
- From: Christopher Faylor <cgf@cygnus.com>
- Date: Fri, 19 Feb 1999 20:25:14 -0500
- Cc: cygwin@sourceware.cygnus.com
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- In-Reply-To: <36CDF573.361DC410@pdi.com>; from Curtis Galloway on Fri, Feb 19, 1999 at 03:36:19PM -0800
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- References: <005001be5c4d$3bd4edc0$02af6080@sokhapki-1.cc.bellcore.com> <36CDF573.361DC410@pdi.com>
- Sender: cygwin-owner@sourceware.cygnus.com
On Fri, Feb 19, 1999 at 03:36:19PM -0800, Curtis Galloway wrote:
>Sergey Okhapkin wrote:
>> CTRL_LOGOFF_EVENT is sent to every running application including services.
>
>Yes, but does it terminate your process if you return FALSE in your handler? I
>don't think so.
>
>I did a quick test using my modified cygwin1.dll. I created a simple program
>that does nothing but write log messages to a file, and installed it as a
>service using the NT Resource Kit's SRVANY.EXE tool. Even though my modified
>event handler returns FALSE, my test service survived through logging out and
>back in again.
>
>Perhaps my test was invalid. If so, I'd be happy to hear about it. (I still
>don't think the signal handling in exceptions.cc is quite right; it appears to
>not give programs a chance to handle the CTRL_CLOSE_EVENT or
>CTRL_SHUTDOWN_EVENT before Windows kills the process off.)
If you guys can come to a consensus on this, I'll be happy to put whatever
fix you think fixes the problem into cygwin.
-chris
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com