Skip to content

Commit

Permalink
unix: Improve solaris event port panic message
Browse files Browse the repository at this point in the history
For golang/go#54254

Change-Id: Id59bacfabc5c818478f6a9af8d585f56f74c2bde
  • Loading branch information
nshalman committed Aug 10, 2022
1 parent 1c4a2a7 commit d6824ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unix/syscall_solaris.go
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ func (e *EventPort) peIntToExt(peInt *portEvent, peExt *PortEvent) {
// the unsafe version would be (*fileObj)(unsafe.Pointer(uintptr(peInt.Object)))
peExt.fobj = fCookie.fobj
} else {
panic("mismanaged memory")
panic("unexpected address received from event port. This may be due to a kernel bug. See https://go.dev/issue/54254.")
}
delete(e.cookies, cookie)
peExt.Path = BytePtrToString((*byte)(unsafe.Pointer(peExt.fobj.Name)))
Expand Down

0 comments on commit d6824ef

Please sign in to comment.