From 1817071b5acb53df11eda50b41f44b230ceb965e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 30 Jul 2020 15:29:42 +1000 Subject: [PATCH] tools: default to the LIBEI_SOCKET if present Signed-off-by: Peter Hutterer --- tools/ei-socket-client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ei-socket-client.c b/tools/ei-socket-client.c index 46d4b01..3cf8e15 100644 --- a/tools/ei-socket-client.c +++ b/tools/ei-socket-client.c @@ -46,7 +46,8 @@ int main(int argc, char **argv) /* This should be handled by libei */ signal(SIGPIPE, SIG_IGN); - int rc = ei_socket_init(ei, SOCKETNAME); + int rc = ei_socket_init(ei, getenv("LIBEI_SOCKET") ? NULL : SOCKETNAME); + if (rc != 0) { fprintf(stderr, "init failed: %s\n", strerror(errno)); return 1;