cancel join after sys.exit in multiprocessing
问题 On OSX I create a tree of processes with multiprocessing.Process. When I send a signal to a parent process, the process enters a join state: [INFO/MainProcess] process shutting down [INFO/MainProcess] calling join() for process Process-1 I am already catching the signal with a signal handler and then calling sys.exit(1). Is there something I can call before sys.exit(1) that will prevent this process from waiting for its child? 回答1: You can avoid this by setting the daemon property to True on