Message190533
Forking as a side effect of importing a module is evil. I think raising a RuntimeError is preferable to trying to make it Just Work.
But maybe one could do
void
_PyImport_ReInitLock(void)
{
if (import_lock != NULL) {
import_lock = PyThread_allocate_lock();
PyThread_acquire_lock(import_lock, WAIT_LOCK);
}
import_lock_thread = PyThread_get_thread_ident();
_PyImport_ReleaseLock();
} |
|
Date |
User |
Action |
Args |
2013-06-03 10:24:43 | sbt | set | recipients:
+ sbt, arigo, gregory.p.smith, pitrou, dmi.baranov |
2013-06-03 10:24:43 | sbt | set | messageid: <1370255083.92.0.225857361837.issue18122@psf.upfronthosting.co.za> |
2013-06-03 10:24:43 | sbt | link | issue18122 messages |
2013-06-03 10:24:43 | sbt | create | |
|