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.
Loading
Please register or sign in to comment