delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/12/07:41:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
To: cygwin AT cygwin DOT com
From: Kamen TOMOV <kamen AT cybuild DOT com>
Subject: Re: howto register process
Date: 12 Nov 2004 14:40:18 +0200
Organization: CYBUILD
Lines: 21
Message-ID: <873bzfdyvh.fsf@zlatenlist.homelinux.net>
References: <87mzxoveei DOT fsf AT zlatenlist DOT homelinux DOT net> <NUTMEGadVe5HXC9xubf00000688 AT NUTMEG DOT CAM DOT ARTIMI DOT COM> <87vfccw8f5 DOT fsf AT zlatenlist DOT homelinux DOT net> <20041111182839 DOT GE14312 AT trixie DOT casa DOT cgf DOT cx> <87k6ssw7ub DOT fsf AT zlatenlist DOT homelinux DOT net> <419403DF DOT 712E332F AT dessent DOT net>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: 212-104-100-183.cable.evrocom.net
X-Home-Page: http://www.cybuild.com
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
X-IsSubscribed: yes

On Fri, Nov 12 2004, Brian Dessent wrote:

> Kamen TOMOV wrote:
> 
> > The parent process is started as a windows server. Then it
> > executes cygwin's fork. When I try to kill any of these with
> > kill() it returns "No such pid".
> 
> Are you sure you're not confusing Cygwin PIDs with Win32 PIDs?  In
> order to make the fork() magic work, Cygwin maintains its own PIDs
> in parallel to the actual windows PID.  All the Cygwin functions
> ...

Thanks Brian. Yes I am sure I'm not confusing them. I tryed a function
that is part of the cygwin's API. It is called cygwin_winpid_to_pid to
get the cygwin's PID but it returns -1 on pids which does not
correspond to a cygwin pid.
 
Regards,
-- 
Kamen TOMOV


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