forked from rosa/hakurei
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 <cat@gensokyo.uk>
This commit is contained in:
@@ -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 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user