app: leave SIGHUP alone so nohup keeps the app running (#248 follow-up)

#445 also closed the window on SIGHUP, which overrides the SIG_IGN that
`nohup fieldcraft &` sets so the app outlives its terminal. A safe API cannot
ask whether a signal was ignored at launch, so SIGHUP keeps its default.
SIGTERM and SIGINT still close the window the normal way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
jyvikoandClaude Opus 5.5 authored and Irakli Kourtis committed 2026-10-16 00:47:35 -04:00
1 parent 9a30c7d9ed
commit 7a5363e07b
4 files changed
+11 -8

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ ureq = { version = "3.4", default-features = false, features = ["rustls-no-provi
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
getrandom = "0.3"
# A termination signal (SIGTERM, SIGINT, SIGHUP) closes the window the normal way (terminate.rs).
# A termination signal (SIGTERM, SIGINT) closes the window the normal way (terminate.rs).
[target.'cfg(unix)'.dependencies]
signal-hook = "0.3"