Reset errno to 0 before calling sem_open(3). For some reason, this seems to be critical for ensuring that sem_open(3) behaves correctly on Darwin 9.x (Mac OS X 10.5).
Reset errno to 0 before calling sem_open(3). For some reason, this seems to
be critical for ensuring that sem_open(3) behaves correctly on Darwin 9.x
(Mac OS X 10.5).

Submitted by: Doug McCorkle <mccdo at iastate dot edu>


git-svn-id: a341ccba1312b2efdbe34f40faf90581f48aa49f@20917 08b38cba-cd3b-11de-854e-f91c5b6e4272

vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,godbyk/vrjuggler-upstream-old,vancegroup-mirrors/vrjuggler,MichaelMcDonnell/vrjuggler,vrjuggler/vrjuggler,vancegroup-mirrors/vrjuggler,LiuKeHua/vrjuggler,LiuKeHua/vrjuggler,vrjuggler/vrjuggler,vrjuggler/vrjuggler,godbyk/vrjuggler-upstream-old,vrjuggler/vrjuggler,vancegroup-mirrors/vrjuggler,MichaelMcDonnell/vrjuggler,vrjuggler/vrjuggler,LiuKeHua/vrjuggler,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,vancegroup-mirrors/vrjuggler,MichaelMcDonnell/vrjuggler,LiuKeHua/vrjuggler,LiuKeHua/vrjuggler,MichaelMcDonnell/vrjuggler,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,godbyk/vrjuggler-upstream-old,vancegroup-mirrors/vrjuggler,godbyk/vrjuggler-upstream-old,MichaelMcDonnell/vrjuggler,godbyk/vrjuggler-upstream-old,LiuKeHua/vrjuggler,godbyk/vrjuggler-upstream-old,LiuKeHua/vrjuggler,LiuKeHua/vrjuggler,vancegroup-mirrors/vrjuggler