[issue19478] Add ability to prefix posix semaphore names created by multiprocessing module
Marc Liyanage
report at bugs.python.org
Fri Nov 1 21:23:01 CET 2013
Marc Liyanage added the comment:
I'm thinking something along the lines of
char *env = Py_GETENV("PYTHONSEMAPHOREPREFIX");
if (env && *env != '\0') {
PyOS_snprintf(buffer, sizeof(buffer), "%s/mp%ld-%d", env, (long)getpid(), counter++);
} else {
PyOS_snprintf(buffer, sizeof(buffer), "/mp%ld-%d", (long)getpid(), counter++);
}
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19478>
_______________________________________
More information about the Python-bugs-list
mailing list