summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Jeff Hostetler <jeffhost@microsoft.com>2021-03-22 10:29:47 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-03-22 11:52:54 -0700
commit7cd5dbcaba44914c07a51377e75c4e8bbe31f319 (patch)
treefcfcd332b445434970a85c0f6135e7a555e7d8c1 /Makefile
parentunix-stream-server: create unix domain socket under lock (diff)
downloadtgif-7cd5dbcaba44914c07a51377e75c4e8bbe31f319.tar.xz
simple-ipc: add Unix domain socket implementation
Create Unix domain socket based implementation of "simple-ipc". A set of `ipc_client` routines implement a client library to connect to an `ipc_server` over a Unix domain socket, send a simple request, and receive a single response. Clients use blocking IO on the socket. A set of `ipc_server` routines implement a thread pool to listen for and concurrently service client connections. The server creates a new Unix domain socket at a known location. If a socket already exists with that name, the server tries to determine if another server is already listening on the socket or if the socket is dead. If socket is busy, the server exits with an error rather than stealing the socket. If the socket is dead, the server creates a new one and starts up. If while running, the server detects that its socket has been stolen by another server, it automatically exits. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f29a9e82e1..8e4bde2d81 100644
--- a/Makefile
+++ b/Makefile
@@ -1678,6 +1678,8 @@ ifdef NO_UNIX_SOCKETS
else
LIB_OBJS += unix-socket.o
LIB_OBJS += unix-stream-server.o
+ LIB_OBJS += compat/simple-ipc/ipc-shared.o
+ LIB_OBJS += compat/simple-ipc/ipc-unix-socket.o
endif
ifdef USE_WIN32_IPC