From b933283d3029c8488e09ddb08de04be7f478b3f6 Mon Sep 17 00:00:00 2001 From: Git Sagar Date: Thu, 4 Jun 2026 18:46:40 +0530 Subject: [PATCH] exit-on-disconnect: log account name before exiting Co-Authored-By: Claude Opus 4.6 --- patches/exit-client-on-disconnect.patch | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/patches/exit-client-on-disconnect.patch b/patches/exit-client-on-disconnect.patch index 76cd3b0..1c1ddb9 100644 --- a/patches/exit-client-on-disconnect.patch +++ b/patches/exit-client-on-disconnect.patch @@ -1,14 +1,15 @@ ---- a/src/Cedar/Session.c 2026-06-04 16:38:36.571857886 +0530 -+++ b/src/Cedar/Session.c 2026-06-04 16:38:36.581858026 +0530 -@@ -1789,6 +1789,13 @@ +--- a/src/Cedar/Session.c 2026-06-04 18:43:24.747504226 +0530 ++++ b/src/Cedar/Session.c 2026-06-04 18:43:24.753504227 +0530 +@@ -1789,6 +1789,14 @@ Debug("Session Halt.\n"); + -+ // Exit process when a startup account exhausts retries. ++ // Exit process when a startup account disconnects. + // Lets systemd restart the service for a clean reconnect + DHCP. + if (s->Account != NULL && s->Account->StartupAccount) + { ++ Print("Startup account \"%s\" disconnected. Exiting.\n", s->Account->ClientOption->AccountName); + _exit(1); + } s->ClientStatus = CLIENT_STATUS_IDLE;