Skip to content

Add retry count and retry time to login program#134

Merged
kdj0c merged 2 commits intoAetf:mainfrom
michael-oberpriller:develop
Sep 18, 2025
Merged

Add retry count and retry time to login program#134
kdj0c merged 2 commits intoAetf:mainfrom
michael-oberpriller:develop

Conversation

@michael-oberpriller
Copy link

This fixes #122 by adding retry login when restarting the login program in the sig_child function. MAX_RETRY_COUNT and MAX_RETRY_TIME are used with values of 5 tries and 10s respectively. These values are from systemd's defaults for restarting a service on failure. This logic updates the retry count if it has been less than 10s since the terminal session started and checks if more than 5 retry attempts have occurred in this time period and stops any further retry attempts.

@kdj0c kdj0c merged commit f99c5a0 into Aetf:main Sep 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rapidly restarting login program

2 participants