Implement multiprocessing without inheriting parent file handle

Grant Edwards invalid at invalid.invalid
Fri Mar 21 18:37:24 CET 2014

On 2014-03-21, Antony Joseph <antonyjoseph89 at> 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!

More information about the Python-list mailing list