delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/11/16:25:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 11 Sep 2002 22:24:41 +0200 (CEST)
From: Pavel Tsekov <ptsekov AT gmx DOT net>
X-X-Sender: ptsekov AT moria
To: "dan ''dante'' tenenbaum" <dandante AT dandante DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: cygrunsrv V0.95 bug (dll ver 1.3.12-2)
In-Reply-To: <Pine.LNX.4.44.0209111253550.9009-100000@pro.netnation.com>
Message-ID: <Pine.LNX.4.44.0209112217420.2786-100000@moria>
MIME-Version: 1.0

On Wed, 11 Sep 2002, dan ''dante'' tenenbaum wrote:

> I created a couple of services using cygrunsrv V0.95 (cygwin dll version 
> 1.3.12-2) under Windows 2000.
> 
> When I log off, those services are stopped. 
> 
> One of the services is a Java application. I understand that there is a 
> common bug with many service wrappers, something to do with NT 
> CTRL_LOGOFF_EVENT . Is that what this is and is there any way to work 
> around it?

I hope the information below can help...

Quote 1 (MSDN):
===============
For WIN32 graphical applications: when the currently logged-in user is
logging-off, all WIN32 top-level windows receive WM_QUERYENDSESSION and
WM_ENDSESSION messages. Some WIN32 applications choose to terminate upon
receipt of such messages. In order for your WIN32 application to survive
logoff, it must not do that: instead, your windows procedure should call 
the
default windows procedure on these messages.
For WIN32 Console (i.e. character-mode) applications: when the currently
logged-in user is logging-off, all Console applications receive a
CTRL_LOGOFF_EVENT event from the Console. 

If your Console application has registered a Console event handler (via
SetConsoleCtrlHandler), it must ignore CTRL_LOGOFF_EVENT in order to 
survive
the logoff.

Quote 2:
========
Bug 4323062: Any Windows NT Service embedding Java VM aborts when user 
logs out

            This bug has been fixed in J2SDK 1.3.1. In order to enable the 
fix,
the -Xrs command-line option must be passed to the JVM. The additional 
command
line argument is
            necessary because the fix necessarily disables the J2SDK 1.3
shutdown hooks mechanism and forbids the use of the sun.misc.Signal class. 
For
more background,
            please see at least the last section of the evaluation on the 
Bug
Parade:

            
http://developer.java.sun.com/developer/bugParade/bugs/4323062.html



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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