Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Subject: Stopping bash script services under NT To: cygwin AT cygwin DOT com From: fjmarkus AT sundn DOT de Date: Thu, 22 Mar 2001 19:36:13 +0100 Message-ID: X-MIMETrack: Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.5 |September 22, 2000) at 22.03.2001 19:36:14 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Hi, I installed an NT service using srvany.exe which starts rmiregistry.exe from a bash script. Everything works fine until I try to stop the service. Srvany and one instance of bash terminate but rmiregistry and another bash (created while executing rmiregistry) remain. I tried to catch the terminate signal in the bash script but obviously TerminateProcess() sends none. Is it possible to catch the TerminateProcess() from srvany? If not, can I prevent the second bash from beeing started/forked? Any other ideas? Franz-J. Markus -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple