> 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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to