sem_t objects are opaque and don't have a static initializer available.
For simplicity, add an init_socket_handling function which can be used
to initialize other global variables, if necessary.
Luckily musl behaves fine with a zero initialized sem_t, only
erroneously treating it as a process shared semaphore.
sem_t objects are opaque and don't have a static initializer available. For simplicity, add an init_socket_handling function which can be used to initialize other global variables, if necessary.
Luckily musl behaves fine with a zero initialized sem_t, only erroneously treating it as a process shared semaphore.