summaryrefslogtreecommitdiff
path: root/logsrvd/logsrvd.c
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@sudo.ws>2021-04-29 14:19:08 -0600
committerTodd C. Miller <Todd.Miller@sudo.ws>2021-04-29 14:19:08 -0600
commitf1012cd71bf380ee840392f176142b7431402c31 (patch)
treee275daa68bd46d65f5cbf2ee06634f229ce49ba1 /logsrvd/logsrvd.c
parentf913a2c0143375dfef23233ff610c2459772d75c (diff)
downloadsudo-f1012cd71bf380ee840392f176142b7431402c31.tar.gz
Create journal files in an incoming directory, move to outgoing when complete.
This will make it possible to process completed journal files periodically if the relay server is down.
Diffstat (limited to 'logsrvd/logsrvd.c')
-rw-r--r--logsrvd/logsrvd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/logsrvd/logsrvd.c b/logsrvd/logsrvd.c
index 1d562d1f2..d2e31c085 100644
--- a/logsrvd/logsrvd.c
+++ b/logsrvd/logsrvd.c
@@ -237,6 +237,10 @@ connection_close(struct connection_closure *closure)
if (closure == NULL)
debug_return;
+ /* Final state should be FINISHED except on error. */
+ sudo_debug_printf(SUDO_DEBUG_INFO|SUDO_DEBUG_LINENO,
+ "closure %p, final state %d", closure, closure->state);
+
/*
* If we finished a client connection in store-and-forward mode,
* create a new connection for the relay and replay the journal.