mirror of
https://github.com/vishvananda/netlink.git
synced 2025-09-26 20:01:13 +08:00
Implement the Temporary() method on errDumpInterrupted
This is minimal, non-breaking, and preserves compatibility with older retry detection patterns.
This commit is contained in:

committed by
Alessandro Boch

parent
78aca1ace5
commit
e1e2602148
@@ -58,6 +58,8 @@ func (errDumpInterrupted) Error() string {
|
||||
return "results may be incomplete or inconsistent"
|
||||
}
|
||||
|
||||
func (errDumpInterrupted) Temporary() bool { return true }
|
||||
|
||||
// Before errDumpInterrupted was introduced, EINTR was returned when a netlink
|
||||
// response had NLM_F_DUMP_INTR. Retain backward compatibility with code that
|
||||
// may be checking for EINTR using Is.
|
||||
|
Reference in New Issue
Block a user