mirror of
https://github.com/golang/sys.git
synced 2026-02-08 03:36:03 +03:00
unix: improve solaris event port panic message
For golang/go#54254 Change-Id: Id59bacfabc5c818478f6a9af8d585f56f74c2bde Reviewed-on: https://go-review.googlesource.com/c/sys/+/422099 Reviewed-by: Nahum Shalman <nahamu@gmail.com> Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Robert Griesemer <gri@google.com>
This commit is contained in:
committed by
Michael Pratt
parent
20c2bfdbfe
commit
c680a09ffe
@@ -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 event port address; may be due to kernel bug; see https://go.dev/issue/54254")
|
||||
}
|
||||
delete(e.cookies, cookie)
|
||||
peExt.Path = BytePtrToString((*byte)(unsafe.Pointer(peExt.fobj.Name)))
|
||||
|
||||
Reference in New Issue
Block a user