How does Python's async kill signal handling (signal.signal) work?

后端 未结 0 1558
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-14 11:26

Python has async kill signal handling:

import signal
import sys

def signal_handler(*_):
    print("\\nExiting...")
    sys.exit(0)

signal.signal(signa         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题