Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:
On Wed, Aug 11, 2010 at 10:56 PM, Alex Roitman <rep...@bugs.python.org> wrote: > > Alex Roitman <rsh...@gmail.com> added the comment: > > I can place it in a function. But if I execute that function from anything > other than main > module, the fork() will be called while import lock is held, one way or > another. It will just > happen in another module. So what? This discussion is now off-topic for the python bug tracker. Please ask questions on how to use python in an appropriate forum such as python-list. The problem you have uncovered only occurs if fork() is called *during* module import. If you place fork() in a function, it will not be called when you import the module or the function, - only when you call the function. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9573> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com