This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Marc.Liyanage
Recipients Marc.Liyanage, jnoller, sbt
Date 2013-11-01.20:23:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383337381.08.0.647129482596.issue19478@psf.upfronthosting.co.za>
In-reply-to
Content
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++);
    }
History
Date User Action Args
2013-11-01 20:23:01Marc.Liyanagesetrecipients: + Marc.Liyanage, jnoller, sbt
2013-11-01 20:23:01Marc.Liyanagesetmessageid: <1383337381.08.0.647129482596.issue19478@psf.upfronthosting.co.za>
2013-11-01 20:23:01Marc.Liyanagelinkissue19478 messages
2013-11-01 20:23:00Marc.Liyanagecreate