X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 14 Nov 2008 11:38:02 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Kill cygwin process form task manager Message-ID: <20081114103802.GU17719@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <448067AB8643614285E9B1DC376F273C0241F883 AT bermail DOT de DOT aastra DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <448067AB8643614285E9B1DC376F273C0241F883@bermail.de.aastra.com> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Nov 14 11:20, Michael Wiedmann wrote: > Hi, > > I need hints how to act if someone kills my Cygwin (parent) process using Windows task manager and I want to kill all forked child processes. > I already keep a list of all childs pids and can kill them successfully in an SIGINT handler (if the programm is started in foreground and is interrupted e.g. by Ctrl-C). When task manager kills a process, the process doesn't get a notification, as far as I know. You could use any sort of keep-alive mechanism between parent and children so the children end themselves when the parent died. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/