From 8766fddcb3a8047673e513ce0d60c8c46edb5ba1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 27 Mar 2026 22:58:16 +0900 Subject: internal/uevent: recoverable errors This runs in the Rosa OS init, so recover as much as possible, as otherwise it is likely to require a full system reboot to resume event processing. The caller is responsible for reporting the error. Signed-off-by: Ophestra --- internal/uevent/uevent.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/uevent/uevent.go') diff --git a/internal/uevent/uevent.go b/internal/uevent/uevent.go index 674938b1..a97423a8 100644 --- a/internal/uevent/uevent.go +++ b/internal/uevent/uevent.go @@ -9,6 +9,9 @@ import ( "hakurei.app/internal/netlink" ) +// Recoverable is satisfied by errors that are safe to recover from. +type Recoverable interface{ recoverable() } + // Conn represents a NETLINK_KOBJECT_UEVENT socket. type Conn struct{ conn *netlink.Conn } -- cgit v1.3.1