Unlinking not done in generator except for SEM_WRITE_END
This commit is contained in:
parent
84c2dcdd78
commit
834f3f7bf7
@ -198,17 +198,10 @@ void cleanup()
|
|||||||
|
|
||||||
close(shmfd);
|
close(shmfd);
|
||||||
|
|
||||||
if (shm_unlink(SHM_NAME) == -1) {
|
|
||||||
perror("shm_unlink");
|
|
||||||
exit(EXIT_FAILURE);
|
|
||||||
}
|
|
||||||
|
|
||||||
sem_close(sUsedSpace);
|
sem_close(sUsedSpace);
|
||||||
sem_close(sFreeSpace);
|
sem_close(sFreeSpace);
|
||||||
sem_close(sWriteEnd);
|
sem_close(sWriteEnd);
|
||||||
|
|
||||||
sem_unlink(SEM_USED_SPACE);
|
|
||||||
sem_unlink(SEM_FREE_SPACE);
|
|
||||||
sem_unlink(SEM_WRITE_END);
|
sem_unlink(SEM_WRITE_END);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user