Process synchronization fix : some problem in reading semaphores across processes, fixed