Re: [Python-Dev] why multiprocessing use os._exit

2017-03-03 Thread Oleg Broytman
Hello. This mailing list is to work on developing Python (adding new features to Python itself and fixing bugs); if you're having problems learning, understanding or using Python, please find another forum. Probably python-list/comp.lang.python mailing list/news group is the best place; there a

[Python-Dev] why multiprocessing use os._exit

2017-03-02 Thread Tao Qingyun
in multiprocessing/forking.py#129, `os._exit` cause child process don't close open file. For example: ``` from multiprocessing import Process def f(): global log # prevent gc close the file log = open("info.log", "w") log.write("***hello world***\n") p = Pro