checking the return value of sleep(3)