Subj : Re: signaling threads from a forked child? To : comp.programming.threads From : Joe Seigh Date : Tue Aug 09 2005 08:47 am markh@compro.net wrote: > Well, I've got everything working. However I don't understand why I > don't seem to need to use the > pthread_mutexattr_setpshared/pthread_condattr_setpshared calls at all. > It appears that just insuring the mutexes/convars are in fact in a SHM > is all that I needed for this to work. > > Below is a functional test case that works with or without the above > mentioned funtions. > Why does it work without them. What are they really doing or what are > they really indended to be doing for me. > [...] The standard doesn't require your program to not work without them. What you're seeing is undefined behavior as far as the standard is concerned. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .