Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 12 Nov 2004 13:08:58 -0500
From: "Pierre A. Humblet" <pierre.humblet@ieee.org>
To: cygwin@cygwin.com
Subject: Re: howto register process
Message-ID: <20041112180858.GB222609@Worldnet>
References: <873bzfdyvh.fsf@zlatenlist.homelinux.net> <NUTMEG0ApIWXzNbrDYs000006c2@NUTMEG.CAM.ARTIMI.COM> <87sm7fxeza.fsf@zlatenlist.homelinux.net> <20041112154218.GI26737@trixie.casa.cgf.cx> <874qjvezwn.fsf@zlatenlist.homelinux.net> <20041112175603.GB28975@trixie.casa.cgf.cx> <87u0rvdjz6.fsf@zlatenlist.homelinux.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87u0rvdjz6.fsf@zlatenlist.homelinux.net>
User-Agent: Mutt/1.4.1i

On Fri, Nov 12, 2004 at 08:02:05PM +0200, Kamen TOMOV wrote:
> On Fri, Nov 12 2004, Christopher Faylor wrote:
> 
> > *Why* are you calling cygwin_winpid_to_pid on the pids?  If you are
> > getting the pid from the return value of fork they are cygwin pids.
> > You don't call cygwin_winpid_to_pid on them.  A normal cygwin
> > program should not be using cygwin_winpid_to_pid.
> > 
> > As Pierre points out in the next message, what you are describing
> > seems normal for starting a service in certain scenarios but you
> > still haven't explained why you think you need cygwin_winpid_to_pid.
> > 
> > cgf
> 
> The only reason why I call cygwin_winpid_to_pid is that I am
> experimenting. The real problem is that kill() does not work.

To facilate your experimenting, please be assured that kill
won't work if ps doesn't show the process.

Pierre

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

