When a startup account exhausts retries (including after an established connection drops with NumRetry 0), exit the process so systemd can restart it for a clean reconnect + DHCP. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
486 B
Diff
16 lines
486 B
Diff
--- 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 @@
|
|
|
|
Debug("Session Halt.\n");
|
|
|
|
+
|
|
+ // Exit process when a startup account exhausts retries.
|
|
+ // Lets systemd restart the service for a clean reconnect + DHCP.
|
|
+ if (s->Account != NULL && s->Account->StartupAccount)
|
|
+ {
|
|
+ _exit(1);
|
|
+ }
|
|
s->ClientStatus = CLIENT_STATUS_IDLE;
|
|
|
|
// Regard as that the session is ended here
|