Re: import in execv after fork

2006-05-09 Thread Rotem
Another workaround could be re-assigning a new lock to import_lock (such a thing is done with the global interpreter lock) at PyOS_AfterFork or pthread_atfork. -- http://mail.python.org/mailman/listinfo/python-list

import in execv after fork

2006-05-09 Thread Rotem
Hello, We have been encountering several deadlocks in a threaded Python application which calls subprocess.Popen (i.e. fork()) in some of its threads. This has occurred on Python 2.4.1 on a 2.4.27 Linux kernel. Perliminary analysis of the hang shows that the child process blocks upon entering th