delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/05/05:50:21

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: Fri, 5 Dec 2003 11:49:53 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygrunsrv and spawned processes
Message-ID: <20031205104953.GA2456@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <bqnr0g$goo$1 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 56 DOT 0312041518390 DOT 1463 AT slinky DOT cs DOT nyu DOT edu> <bqo96m$gbb$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <bqo96m$gbb$1@sea.gmane.org>
User-Agent: Mutt/1.4.1i

On Dec  4 16:33, Frank Seesink wrote:
> Igor Pechtchanski wrote:
> >On Thu, 4 Dec 2003, Frank Seesink wrote:

[LOTS OF USELESS FULL QUOTES DELETED]

> This tells me that cygrunsrv is not giving you a full environment within 
> which to run the app.  I've looked into spawnlp() and the P_NOWAIT mode, 

It gives you the system environment plus everything specified by the -e
option.  Where else should it get its environment from?

> Anyway, I'm grasping at straws.  I'd just love to get this working 
> properly without leftover processes building up.  Any more 
> thoughts/ideas I can try?  I'll give anything a whack. :-)

I'm guessing that jabber is by default using fork/exec.  Why didn't
you just leave it this way?

A look into the jabberd sources should give a hint which signal is
expected.  In theory there should be a signal handler which then cares
for jabberd's child process.  Assuming it is a SIGHUP handler, send
SIGHUP from cygrunsrv.  Cygrunsrv has no idea about child processes
started from it's inferior process.  It's the responsibility of that
process to care for its children.  This is different from the situation
in the shell where a Ctrl-C results in a SIGINT sent to all processes
not detached from the console.  A process started with spawn(_P_NOWAIT)
is not detached from the console.

Debugging jabberd might give a clue, too.

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
Problem reports:       http://cygwin.com/problems.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