afail (6th April 2009)
Sorry to reopen this issue but the semaphore behaves a little bit strange.
If I start 2 processes one after another, all is fine and the lock is done correctly. If I start 10 processes one after another (i.e. in GNU/Linux: # ./exefile & ./exefile & ./exefile & ./exefile) then either some of the instances crashes or starts as separate instance (which shouldn't).
Any ideas?
Separate instance of what? What is exactly that you are trying to do and how are you trying to do it?
Bookmarks