[tor-commits] [chutney/master] Check RunAsDaemon before using wait()