Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 59210:4afc50d15544 legacy-trunk
Issue #7242: On Solaris 9 and earlier calling os.fork() from within a
thread could raise an incorrect RuntimeError about not holding the import
lock. The import lock is now reinitialized after fork.
| author | Gregory P. Smith <greg@mad-scientist.com> |
|---|---|
| date | Mon, 01 Mar 2010 01:22:39 +0000 |
| parents | 6f6f965c5e2d |
| children |
line wrap: on
line source
#include "Python.h" #ifndef PLATFORM #define PLATFORM "unknown" #endif const char * Py_GetPlatform(void) { return PLATFORM; }
