Date: Mon, 21 Nov 2016 14:35:28 +0100 From: Volker Lendecke <Volker.Lendecke@SerNet.DE> To: freebsd-hackers@freebsd.org Subject: process shared mutexes? Message-ID: <20161121133528.GA30947@sernet.de>
next in thread | raw e-mail | index | archive | help
Hello! For Samba's tdb I'm trying to get process shared robust mutexes to work. However, tdb has a usage pattern that seems to confuse FreeBSD 11 (32-bit x86 if that matters). The attached program fails in the final pthread_mutex_lock call. If I comment out the call to ptr = mmap(NULL, 0xb0, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0x1000); it works. FWIW, tdb uses robust shared mutexes on Linux successfully for a while now. I haven't tried Solaris yet, the only other platform I know about that has them. What am I doing wrong? Thanks, Volker
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161121133528.GA30947>