Redirecting to Semaphore (programming)