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 <rep...@bugs.python.org> <http://bugs.python.org/issue19478> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com