From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30326 invoked by alias); 4 Jul 2012 11:32:51 -0000 Received: (qmail 30316 invoked by uid 22791); 4 Jul 2012 11:32:50 -0000 X-SWARE-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ee0-f43.google.com (HELO mail-ee0-f43.google.com) (74.125.83.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Jul 2012 11:32:38 +0000 Received: by eeke50 with SMTP id e50so2777752eek.2 for ; Wed, 04 Jul 2012 04:32:36 -0700 (PDT) Received: by 10.14.187.11 with SMTP id x11mr5357160eem.57.1341401556539; Wed, 04 Jul 2012 04:32:36 -0700 (PDT) Received: from [192.168.1.136] (87-194-63-158.bethere.co.uk. [87.194.63.158]) by mx.google.com with ESMTPS id a16sm53202645eeg.0.2012.07.04.04.32.35 (version=SSLv3 cipher=OTHER); Wed, 04 Jul 2012 04:32:36 -0700 (PDT) Message-ID: <4FF429C8.9040505@gmail.com> Date: Wed, 04 Jul 2012 11:32:00 -0000 From: Richard H Lee User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Phantom processes left over Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-07/txt/msg00041.txt.bz2 Has anybody come across processes being left over? I'm extending an open source project. The functionality I'm adding is keeping track of running processes. I store the list of active processes in shared memory. When querying the list I also call kill with a 0 signal on all the entries to test if they are still running. The problem is that when a process has clearly ended, by this I mean it does on show up in cygwin's ps or window's task manager, calling kill with signal 0 still returns 0. The same for calling "kill -s 0 " from the command line. This indicates that supposedly the process is still running. Also the pid is still present in the /proc filesystem. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple