Explicitly initialize the group tg_exitsem with sem_init(). The existing...
Explicitly initialize the group tg_exitsem with sem_init(). The existing logic worked because the correct initialization value is all zero, but it is better to initialize the semaphore explicitly. Noted by Jouko Holopainen.
parent
4f87b454
Please register or sign in to comment