wait job output semaphore before shm_open