https://stackoverflow.com/questions/15866597/how-to-use-named-semaphore-from-child