This commit is contained in:
William Lallemand 2024-11-20 14:15:33 +01:00
parent 48f358a904
commit 4e7bb18e59
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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! */