Implement the Temporary() method on errDumpInterrupted

This is minimal, non-breaking, and preserves compatibility with older retry detection patterns.
This commit is contained in:
Dimitar Schkodrov
2025-06-24 15:40:17 +03:00
committed by Alessandro Boch
parent 78aca1ace5
commit e1e2602148

View File

@@ -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.