def test_success(self):
        with AlternateReactor(FakeDaemonizingReactor()):
            self.runner.postApplication()
        self.assertEqual(
            self.mockos.actions,
            [('chdir', '.'), ('umask', 0o077), ('fork', True), 'setsid',
             ('fork', True), ('write', -2, '0'), ('unlink', 'twistd.pid')])
        self.assertEqual(self.mockos.closed, [-3, -2])
Start threads for a TimeoutHandler.
dataset/ETHPy150Open twisted/twisted/twisted/test/test_twistd.py/DaemonizeTests.test_success--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python3-alpha/python-libs/pyxmpp2/mainloop/threads.py/ThreadPool._run_timeout_threads