> To be frank, your disconnection handling is the most outrageous abuse > of semaphores I've seen in months. But it is correct :-)
Well, I'd like it to be correct in the "it's actually decent code" department as well. The "in months" part makes me feel a little bit better, though, as it implies someone else has done something as bad as me. > I see no more flaws. Well, I found one between disconnect and release. I'm hoping this fixes that race as well as the abusive use of semaphores you mentioned. Thanks, John P.S. I'm not sure _exactly_ what you were referring to when you spoke of my bad semaphore use, so if this doesn't correct it, can you elaborate a bit more so that I can correct it?
vicam-2.5.41.patch.gz
Description: GNU Zip compressed data