How to let the child process live when parent process exited?

后端 未结 2 748
一整个雨季
一整个雨季 2020-12-10 06:34

I want to use multiprocessing module to complete this.

when I do this, like:

    $ python my_process.py

I start a pare

2条回答
  •  被撕碎了的回忆
    2020-12-10 06:59

    Here's one way to achieve an independent child process that does not exit when __main__ exits. It uses the os._exit() tip mentioned above by @WKPlus.

    Is there a way to detach matplotlib plots so that the computation can continue?

提交回复
热议问题