Bus service problem using Linux System V semaphore and shared memory