Christoph Moench-Tegeder <c...@burggraben.net> writes:

> ## Jan Beich (jbe...@freebsd.org):
>
>> Walter Schwarzenfeld (privately) writes:
>> > With gtk3 on it starts after sysctl p1003_1b.sem_nsems_max=512.
>> > Please => pkg-message.
>> 
>> Don't use sem(4), it's deprecated since FreeBSD 9.0. p1003_1b.sem_nsems_max
>> doesn't have an effect with the new implementation.
>> 
>> https://svnweb.freebsd.org/changeset/base/201546
>
> Um. Firefox' "configure" code explicitly checks the maximum number
> of semaphores via sysconf(_SC_SEM_NSEMS_MAX) (that's in
> python/futures/concurrent/futures/process.py l. 250). As far as I
> can tell, in FreeBSD 10.3 that value is set by sysctl
> p1003_1b.sem_nsems_max - so at least for the "old" FreeBSD, that
> would be the way to go? (and it worked for me).

FreeBSD 8.x has been EOL since 2015-08-01. However, sysconf() ends up
using sem(4) even for new code. Maybe someone from threads@ knows more.

$ getconf SEM_NSEMS_MAX
undefined

$ kldload sem
$ getconf SEM_NSEMS_MAX
30

> Further, the sem(4) manpage has no deprecation note...
_______________________________________________
freebsd-gecko@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "freebsd-gecko-unsubscr...@freebsd.org"

Reply via email to