cygserver debug output patch

Conrad Scott Conrad.Scott@dsl.pipex.com
Thu Jun 13 06:22:00 GMT 2002


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





More information about the Cygwin-patches mailing list