Hold a fatal error on the framebuffer and reboot in five minutes rather than exiting, since init's death drops the kernel's panic screen over the cause

This commit is contained in:
flamingcow
2026-08-05 21:46:15 -07:00
parent cd259556d4
commit 6d73221123
4 changed files with 148 additions and 6 deletions
+4 -1
View File
@@ -268,7 +268,10 @@ func openFramebuffer() (*framebuffer, error) {
return nil, fmt.Errorf("set crtc: %w", err)
}
go fb.readEvents()
go func() {
defer holdPanic()
fb.readEvents()
}()
// Nothing has been flipped yet, so the first frame is owed its turn.
fb.flips <- struct{}{}
return fb, nil