delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/04/07:33:06

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 <ricardohenrylee AT gmail DOT com>
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
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <pid>" 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019