aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/netpoll_kqueue.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/netpoll_kqueue.go')
-rw-r--r--src/runtime/netpoll_kqueue.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/netpoll_kqueue.go b/src/runtime/netpoll_kqueue.go
index 5adf19ca09..71de98bcd6 100644
--- a/src/runtime/netpoll_kqueue.go
+++ b/src/runtime/netpoll_kqueue.go
@@ -23,8 +23,8 @@ var (
func netpollinit() {
kq = kqueue()
if kq < 0 {
- println("netpollinit: kqueue failed with", -kq)
- throw("netpollinit: kqueue failed")
+ println("runtime: kqueue failed with", -kq)
+ throw("runtime: netpollinit failed")
}
closeonexec(kq)
}
@@ -60,7 +60,7 @@ func netpollclose(fd uintptr) int32 {
}
func netpollarm(pd *pollDesc, mode int) {
- throw("unused")
+ throw("runtime: unused")
}
// Polls for ready network connections.
@@ -80,7 +80,7 @@ retry:
if n < 0 {
if n != -_EINTR {
println("runtime: kevent on fd", kq, "failed with", -n)
- throw("kevent failed")
+ throw("runtime: netpoll failed")
}
goto retry
}