From 4e7bb18e592c11157ad6d15b69ce659123902e07 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 20 Nov 2024 14:15:33 +0100 Subject: [PATCH] debug --- scripts/build-vtest.sh | 2 +- src/systemd.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build-vtest.sh b/scripts/build-vtest.sh index b9945078bb..7b6b23526f 100755 --- a/scripts/build-vtest.sh +++ b/scripts/build-vtest.sh @@ -2,7 +2,7 @@ set -eux -curl -fsSL https://github.com/wlallemand/VTest/archive/refs/heads/haproxy-sd_notify.tar.gz -o VTest.tar.gz +curl -fsSL https://github.com/wlallemand/VTest/archive/refs/heads/haproxy-sd_notify_nonblock.tar.gz -o VTest.tar.gz mkdir ../vtest tar xvf VTest.tar.gz -C ../vtest --strip-components=1 # Special flags due to: https://github.com/vtest/VTest/issues/12 diff --git a/src/systemd.c b/src/systemd.c index 64e8e45631..45e2c4ff61 100644 --- a/src/systemd.c +++ b/src/systemd.c @@ -111,6 +111,7 @@ int sd_notify(int unset_environment, const char *message) } end: + fprintf(stderr, "SD_NOTIFY: msg: %s file: %s fd: %d return: %d, strerror: %s\n", message, socket_path, fd, ret, strerror(-ret)); if (fd > -1) close(fd); return ret; /* Notified! */