Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <024e01c1ab6e$2a04e280$0200a8c0@lifelesswks>
From: "Robert Collins" <robert.collins@itdomain.com.au>
To: "Michael Haubenwallner" <michael.haubenwallner@salomon.at>,
   "Christophe LEITIENNE" <cleitienne@wanadoo.fr>
Cc: <cygwin@cygwin.com>
References: <3C5937FE.C87567DD@salomon.at> <3C59465A.65EBEF58@salomon.at>
Subject: Re: cygipc shmat bug
Date: Sat, 2 Feb 2002 09:16:57 +1100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-OriginalArrivalTime: 01 Feb 2002 22:16:43.0572 (UTC) FILETIME=[21409F40:01C1AB6E]


===
----- Original Message -----
From: "Michael Haubenwallner" <michael.haubenwallner@salomon.at>
> The problem is, that the pid-numbering of Windows is quite "confuse"
> (i don't know any better word), meaning that a later ipctest.exe
> gets the same pid as before, while the attach before with the same
> pid is not removed from the list yet.

So don't test by PID, test by handle. IIRC I've already suggested that.
Also, IIRC (Chris, Corinna you may have encountered evidence about this)
if you have a handle open for a process, it's PID isn't recycled until
all the handles have been closed).

Rob


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

