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
To: cygwin@cygwin.com
From: Kamen TOMOV <kamen@cybuild.com>
Subject: howto register process
Date: 11 Nov 2004 13:00:37 +0200
Organization: CYBUILD
Lines: 18
Message-ID: <87mzxoveei.fsf@zlatenlist.homelinux.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: usenet@sea.gmane.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

Hi,

I have an application that is created to work on Unix but it is
supposed to run on Windows as well. The problem is that we have a
daemon that spawns a few children and later it needs to kill them. The
parent process is supposed to communicate with its children by signals
and to eventually terminate them. I would like to use kill(pid,
signal) to kill the processes because they rely on the signals
mechanizm. 

The problem is that kill returns "not such pid". Is there a way to
register a process in the cygwin process table so that later be able
to kill it with kill()? TIA.

Regards,
-- 
Kamen TOMOV
UNIX Software Engineer


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

