This is the mail archive of the
mailing list for the Cygwin project.
Re: cygipc shmat bug
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 1 Feb 2002 20:49:12 -0500
- Subject: Re: cygipc shmat bug
- References: <3C5937FE.C87567DD@salomon.at> <3C59465A.65EBEF58@salomon.at> <024e01c1ab6e$2a04e280$0200a8c0@lifelesswks>
- Reply-to: cygwin at cygwin dot com
On Sat, Feb 02, 2002 at 09:16:57AM +1100, Robert Collins wrote:
>From: "Michael Haubenwallner" <email@example.com>
>>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).
That's correct. Cygwin relies on that behavior, in fact.
In case it isn't obvious, Cygwin uses windows pids, which can be
recycled rapidly. Relying on any specific behavior for PID numbers is
really not a good idea, even on UNIX.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html