delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/08/08:35:18

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
Date: Thu, 8 Nov 2001 14:34:50 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygrunsrv v0.94 starts but not stops java.exe
Message-ID: <20011108143450.C1099@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <000701c16857$fb3e6ba0$2ae61718 AT bdfrd1 DOT tx DOT home DOT com>
Mime-Version: 1.0
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 AT cygwin DOT 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/

- Raw text -


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