forked from 1b-agent/fieldcraft-upstream
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:
1 parent
9a30c7d9ed
commit
7a5363e07b
4 files changed
+11
-8
No files matched your search
@@ -268,7 +268,7 @@ fn main() -> eframe::Result {
|
||||
log::info!("graphics {:?} {} ({}), MSAA {}x (requested {MSAA}x)", info.backend, info.name, info.driver, rs.msaa_samples);
|
||||
app.set_wgpu(rs, DEPTH_BITS, rs.msaa_samples, &cc.egui_ctx);
|
||||
}
|
||||
// `kill`, Ctrl-C or a logout closes the window as Close does: autosaved, no crash (#248).
|
||||
// `kill` or Ctrl-C closes the window as Close does: autosaved, no crash (#248).
|
||||
let ctx = cc.egui_ctx.clone();
|
||||
if let Err(e) = terminate::watch(move || {
|
||||
ctx.send_viewport_cmd(egui::ViewportCommand::Close);
|
||||
|
||||
Reference in new issue
Block a user