Skip to content

Commit e1e2602

Browse files
Dimitar Schkodrovaboch
authored andcommitted
Implement the Temporary() method on errDumpInterrupted
This is minimal, non-breaking, and preserves compatibility with older retry detection patterns.
1 parent 78aca1a commit e1e2602

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nl/nl_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ func (errDumpInterrupted) Error() string {
5858
return "results may be incomplete or inconsistent"
5959
}
6060

61+
func (errDumpInterrupted) Temporary() bool { return true }
62+
6163
// Before errDumpInterrupted was introduced, EINTR was returned when a netlink
6264
// response had NLM_F_DUMP_INTR. Retain backward compatibility with code that
6365
// may be checking for EINTR using Is.

0 commit comments

Comments
 (0)