Python multiprocessing and independence of children processes
问题 From the python terminal, I run some command like the following, to spawn a long-running child process: from multiprocessing.process import Process Process(target=LONG_RUNNING_FUNCTION).start() This command returns, and I can do other things in the python terminal, but anything printed by the child is still printed to my python terminal session. When I exit the terminal (either with exit or CTRL + D ), the exit command it hangs. If I hit CTRL + C during this hang, the child process is