psm.c
void detachPSM(PSM * psm){
    shmDetach(psm->sharedMemory);
    shmDelete(psm->shmid);

    semDelete(psm->semEmpty);
    semDelete(psm->semFull);
}
// Detach the shared memory segment and the two semaphores of a PSM structure
Detach the shared memory segment and the two semaphores of a PSM structure
Detach the shared memory segment and the two semaphores of a PSM structure
void detachPSM(PSM * psm){
    shmDetach(psm->sharedMemory);
    shmDelete(psm->shmid);
    semDelete(psm->semEmpty);
    semDelete(psm->semFull);
}
void detachPSM ( PSM * psm ) { shmDetach ( psm -> sharedMemory ) ; shmDelete ( psm -> shmid ) ; semDelete ( psm -> semEmpty ) ; semDelete ( psm -> semFull ) ; }
Detach the shared memory segment and the two semaphores of a PSM structure
Detach the shared memory segment and the two semaphores of a PSM structure