Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Qmail-Scanner-Mail-From: kamen AT cybuild DOT com via main.evrocom.net X-Qmail-Scanner: 1.23st (Clear:RC:1(212.104.100.183):. Processed in 0.048115 secs Process 56615) To: cygwin AT cygwin DOT com Subject: Re: howto register process References: <87mzxoveei DOT fsf AT zlatenlist DOT homelinux DOT net> <87vfccw8f5 DOT fsf AT zlatenlist DOT homelinux DOT net> <20041111182839 DOT GE14312 AT trixie DOT casa DOT cgf DOT cx> From: Kamen TOMOV X-Home-Page: http://www.cybuild.com Organization: CYBUILD Date: 11 Nov 2004 20:37:00 +0200 In-Reply-To: <20041111182839.GE14312@trixie.casa.cgf.cx> Message-ID: <87k6ssw7ub.fsf@zlatenlist.homelinux.net> Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Thu, Nov 11 2004, Christopher Faylor wrote: > On Thu, Nov 11, 2004 at 08:24:30PM +0200, Kamen TOMOV wrote: > >Thanks Dave. The thing is that the child processes get forked with > >a fork() invocation. What's more not only the child pids are > >invisible to cygwin, but also their parent is invisible. That is > >why I'm wondering isn't there a way to make them part of the > >processes that are visible by cygwin. My purpose is - to be able to > >kill them with kill() and to use the signal system. > > Cygwin processes created with fork() and/or exec() can, of course, > use cygwin signals and do show up in the process table. > > The Cygwin distribution wouldn't operate if this was not true. > > You need to provide a test case showing what you are trying to do, > i.e., http://cygwin.com/problems.html . 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". 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/