debug
This commit is contained in:
parent
48f358a904
commit
4e7bb18e59
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -eux
|
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
|
mkdir ../vtest
|
||||||
tar xvf VTest.tar.gz -C ../vtest --strip-components=1
|
tar xvf VTest.tar.gz -C ../vtest --strip-components=1
|
||||||
# Special flags due to: https://github.com/vtest/VTest/issues/12
|
# Special flags due to: https://github.com/vtest/VTest/issues/12
|
||||||
|
|
|
@ -111,6 +111,7 @@ int sd_notify(int unset_environment, const char *message)
|
||||||
}
|
}
|
||||||
|
|
||||||
end:
|
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)
|
if (fd > -1)
|
||||||
close(fd);
|
close(fd);
|
||||||
return ret; /* Notified! */
|
return ret; /* Notified! */
|
||||||
|
|
Loading…
Reference in New Issue