[kde-freebsd] [CFT] kde-games fix for (invalid shared segment parameter)

Alberto Villa avilla at freebsd.org
Fri Mar 9 19:32:53 UTC 2012


On Fri, Mar 9, 2012 at 5:55 PM, Mel Flynn <rflynn at acsalaska.net> wrote:
> I'm wondering two different things:
> 1) Why are we using semaphore locks?
> Traced this down to missing POSIX_THREAD_PROCESS_SHARED support
> (basically, the pthread_mutexattr_setpshared POSIX function).
>
> 2) Could missing support of anonymous semaphores be the root cause? In
> other words, has anyone looked into:
> https://git.reviewboard.kde.org/r/102147/
>
> It makes sense to me that if we're unable to use KSDC that each program
> creates it's own segments and we're consuming more then we should be.

If you're talking only about KSDC, yes, it was me who implemented
semaphore support a couple of years ago (it has changed quite a bit
since then). As far as I remember, starting from FreeBSD 9.X KSDC
works fine with anonymous semaphores. I had an idea to write an
implementation with named semaphores for 8.X, but never started. Also,
I think that pshared locks were added to FreeBSD, but sysconf feature
line wasn't updated. I'll search my archives.

Anyway, this cannot be the cause of the problems as 9.X and 10.X have
a fully working KSDC.
-- 
Alberto Villa, FreeBSD committer <avilla at FreeBSD.org>
http://people.FreeBSD.org/~avilla


More information about the kde-freebsd mailing list