[Python-Dev] Issue #10348: concurrent.futures doesn't work on BSD

"Martin v. Löwis" martin at v.loewis.de
Mon Jan 3 00:59:04 CET 2011


> I added informations about FreeBSD, NetBSD, Darwin and OpenBSD to the
> issue #10348:
> http://bugs.python.org/issue10348#msg125042
> 
> The maximum number of POSIX semaphores can be read with sysctl:
>  - FreeBSD: "p1003_1b.sem_nsems_max"
>  - NetBSD: "kern.posix.semmax"
>  - Darwin: "kern.posix.sem.max"
>  - OpenBSD: (no support)

I've been using os.sysconf("SC_SEM_NSEMS_MAX"), which seems to have
worked fine (it's also what POSIX mandates). See #10798.

Regards,
Martin


More information about the Python-Dev mailing list