Hello misc, I'm currently writing a small server application for myself on OpenBSD. This program requires me to have multiple threads/processes to have access to the same socket.
To prevent producing clutter by multiple processes/threads writing to the same socket at the same time, due to race conditions, I was thinking about using semaphores, but I saw that named semaphores aren't supported. When looking through the source I noticed that there's hardly any semaphore use inside the OpenBSD code. So I was wondering what the preferred way of handling this kind of issues is on OpenBSD. Sincerely, Martijn