feat: add idle timeout and parent process death detection

Prevents orphaned bbs-md processes when SSH sessions disconnect
uncleanly. Adds two mechanisms:

- Parent death check: polls getppid() each loop iteration and exits
  when the parent (sshd) dies, detecting session orphaning immediately.
- Idle timeout: configurable idle_timeout_minutes in bbs.toml (default
  0 = disabled) exits after no keyboard/mouse input for the duration.
This commit is contained in:
2026-03-01 18:50:29 +01:00
parent 8ef587c163
commit 065365662c
5 changed files with 46 additions and 0 deletions
Generated
+1
View File
@@ -223,6 +223,7 @@ dependencies = [
"ansi-to-tui",
"clap",
"image",
"libc",
"notify",
"pulldown-cmark",
"ratatui 0.30.0",