delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/01/17:17:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <024e01c1ab6e$2a04e280$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: "Michael Haubenwallner" <michael DOT haubenwallner AT salomon DOT at>,
"Christophe LEITIENNE" <cleitienne AT wanadoo DOT fr>
Cc: <cygwin AT cygwin DOT com>
References: <3C5937FE DOT C87567DD AT salomon DOT at> <3C59465A DOT 65EBEF58 AT salomon DOT at>
Subject: Re: cygipc shmat bug
Date: Sat, 2 Feb 2002 09:16:57 +1100
MIME-Version: 1.0
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 DOT haubenwallner AT salomon DOT 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/

- Raw text -


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