Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户注销时,由该用户启动的 twistd 守护进程被杀死。但是,它会留下 .pid 文件,因此我希望以更优雅的方式关闭守护程序。理想情况下,我会对一些信号做出反应并使用reactor.stop().
reactor.stop()
我怎样才能做到这一点?