mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
eventfd: more detailed error message
PiperOrigin-RevId: 506948082
This commit is contained in:
committed by
gVisor bot
parent
13c7e55e59
commit
af99fcb280
@@ -78,8 +78,8 @@ func (ev Eventfd) Write(val uint64) error {
|
||||
if err == unix.EINTR {
|
||||
continue
|
||||
}
|
||||
if n != sizeofUint64 {
|
||||
panic(fmt.Sprintf("short write to eventfd: got %d bytes, wanted %d", n, sizeofUint64))
|
||||
if err != nil || n != sizeofUint64 {
|
||||
panic(fmt.Sprintf("bad write to eventfd: got %d bytes, wanted %d with error %v", n, sizeofUint64, err))
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user