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 Date: Fri, 12 Nov 2004 12:46:04 -0500 From: "Pierre A. Humblet" To: cygwin AT cygwin DOT com Subject: Re: howto register process Message-ID: <20041112174603.GA222609@Worldnet> References: <873bzfdyvh DOT fsf AT zlatenlist DOT homelinux DOT net> <87sm7fxeza DOT fsf AT zlatenlist DOT homelinux DOT net> <20041112154218 DOT GI26737 AT trixie DOT casa DOT cgf DOT cx> <874qjvezwn DOT fsf AT zlatenlist DOT homelinux DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874qjvezwn.fsf@zlatenlist.homelinux.net> User-Agent: Mutt/1.4.1i On Fri, Nov 12, 2004 at 07:32:40PM +0200, Kamen TOMOV wrote: > > It's for sure that there are some things that are not quite clear, but > in a nutshell: > > We have a daemon compiled with cygwin's fork, kill, etc. > > 1st scenario: > > - the daemon gets started as a Windows service > - the daemon forks (calling the cygwin's version of fork()) and as a > result we have a few children. > > The facts: > > - neither the daemon, nor its children are seen by cygwins's ps.exe or > could be killed with kill.exe, or kill(). > > - calling cygwin_winpid_to_pid on the parent's pid or any of its > children's pid returns the error result: -1. > > 2nd scenario: > > - the daemon gets started from the bash's command line. > > The facts: > > - the daemon is seen in the list of processes given by ps.exe and > could be killed with kill.exe. You have not provided the information requested in http://cygwin.com/problems.html, despite being asked. FWIW, what you describe would make sense if you are logged in under Terminal Services and you do not have the Create Global Name privilege. 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/