X-Recipient: archive-cygwin AT delorie DOT com 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 Message-ID: <4FF429C8.9040505@gmail.com> Date: Wed, 04 Jul 2012 12:32:24 +0100 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 AT cygwin DOT 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 AT cygwin DOT com; run by ezmlm List-Id: 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 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