Implement multiprocessing without inheriting parent file handle

Grant Edwards invalid at invalid.invalid
Fri Mar 21 13:37:24 EDT 2014


On 2014-03-21, Antony Joseph <antonyjoseph89 at gmail.com> wrote:

> How can i implement multiprocessing without inherit file descriptors from
> my parent process?

What one typically does if that is desired is to call fork() and then
in the child process close all open file descriptors before doing any
other processsing (such as exec()ing another program).

-- 
Grant Edwards               grant.b.edwards        Yow! My life is a patio
                                  at               of fun!
                              gmail.com            



More information about the Python-list mailing list