Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Thu, 8 Nov 2001 14:34:50 +0100
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygrunsrv v0.94 starts but not stops java.exe
Message-ID: <20011108143450.C1099@cygbert.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <000701c16857$fb3e6ba0$2ae61718@bdfrd1.tx.home.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <000701c16857$fb3e6ba0$2ae61718@bdfrd1.tx.home.com>; from jle@post.com on Thu, Nov 08, 2001 at 07:19:21AM -0600

On Thu, Nov 08, 2001 at 07:19:21AM -0600, Joshua wrote:
>     Corinna,
> 
>     Thanks for the response.  I should have realized cygrunsrv was designed
> for Cygwin apps; it's stated clearly enough in the source.  It's just that
> Cygwin's such a great app (thanks to you all), that I want to use it for
> everything.
> 
>     If I'm brave enough to plunge into the source, the force option you're

There's no need to be `brave'.  It's just a small bunch of source,
not even 2000 lines of code.  There's a `-s' option to define the
signal which should be used when killing the service app.  If we could
add something like a special signal or a --forcekill option which
doesn't result in a Cygwin kill() call but instead in calling
TerminateProcess... hmm, that's a bit tricky since cygrunsrv has
no access to the Windows PID... but there's a cygwin_internal()
call which allows getting the process table entry which contains
the Windows PID.  Just take a look into Cygwin's kill implementation,
function forcekill().

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

