This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: cygserver debug output patch
- From: "Conrad Scott" <Conrad dot Scott at dsl dot pipex dot com>
- To: <cygwin-patches at cygwin dot com>
- Date: Thu, 13 Jun 2002 14:24:23 +0100
- Subject: Re: cygserver debug output patch
- References: <00a901c21152$f82c52c0$0200a8c0@lifelesswks>
Robert,
Since Chris is thinking that it would be a good idea to put my cygserver /
shm stuff on a branch, I can't think there's much point putting those
patches I sent you into the main line, they could better go on the branch.
Does that sound reasonable to you?
Anyhow, the ipctests now run successfully on win 95 (thanks to Nicholas for
helping out on the patch, compile, test, report yet another abject failure
test cycle).
I'm now playing around with deleting shmids (and their associated memory
segments). None of the standards are at all clear about what happens if you
IPC_RMID a segment that processes are still attached to: AFAICT it succeeds
but the memory itself is only deleted on the last detach (which I think is
what the cygserver code does - or does now). The only issue I can't find any
reference to is what happens if you call shmat() or shmctl(IPC_INFO) for
that shmid after using IPC_RMID but before the segment itself is deleted.
I'll have a look at the netbsd and the linux code and see what they do, but
if anyone has a good idea or any useful specs, I'd welcome the hint.
Cheers for now.
// Conrad