[ClusterLabs/libqb] 41a24a: Allow Linux to use filesystem sockets (#248)
by Chrissie Caulfield
Branch: refs/heads/master
Home: https://github.com/ClusterLabs/libqb
Commit: 41a24a3df7f894ceb0d66824b52c08e0365c6fc1
https://github.com/ClusterLabs/libqb/commit/41a24a3df7f894ceb0d66824b52c0...
Author: Chrissie Caulfield <ccaulfie(a)redhat.com>
Date: 2017-04-28 (Fri, 28 Apr 2017)
Changed paths:
M configure.ac
M docs/mainpage.h
M lib/ipc_int.h
M lib/ipc_setup.c
M lib/ipc_socket.c
M tests/check_ipc.c
Log Message:
-----------
Allow Linux to use filesystem sockets (#248)
* IPC: Allow filesystem sockets to be chosen at run-time on Linux
Most of this patch came from Andrew Beekhof.
Keep a global variable that decides whether or not to use filesystem sockets
or abstract sockets for IPC connections. This variable is set by the presence of a file (default /etc/libqb/force-filesystem-sockets).
* tests: Fix test_ipcc_truncate_when_unlink_fails_shm test using FS sockets
When using filesystem sockets, the
test_ipcc_truncate_when_unlink_fails_shm test always fails, this was
because the unlink() call is wrapped to fail and so it never cleans up
the old version of the socket.
The fix is to preemptively remove the file before unlink gets wrapped.
* doc: Explain the force-filesystem-sockets option
Signed-off-by: Christine Caulfield <ccaulfie(a)redhat.com>
6 years, 11 months