mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-01 08:03:31 +01:00
Merge remote-tracking branch 'origin/maint-0.2.6'
This commit is contained in:
commit
3e9409ef58
3
changes/bug14950
Normal file
3
changes/bug14950
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
o Minor features (logs):
|
||||||
|
- Quiet some log messages in the heartbeat and at startup. Closes
|
||||||
|
ticket 14950.
|
@ -2071,8 +2071,17 @@ do_main_loop(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SYSTEMD
|
#ifdef HAVE_SYSTEMD
|
||||||
log_notice(LD_GENERAL, "Signaling readiness to systemd");
|
{
|
||||||
sd_notify(0, "READY=1");
|
const int r = sd_notify(0, "READY=1");
|
||||||
|
if (r < 0) {
|
||||||
|
log_warn(LD_GENERAL, "Unable to send readiness to systemd: %s",
|
||||||
|
strerror(r));
|
||||||
|
} else if (r > 0) {
|
||||||
|
log_notice(LD_GENERAL, "Signaled readiness to systemd");
|
||||||
|
} else {
|
||||||
|
log_info(LD_GENERAL, "Systemd NOTIFY_SOCKET not present.");
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
Loading…
Reference in New Issue
Block a user