You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
The piece of code shows that it handles the return number of write, but it seems the return value can only be the length of write, which is 1 in this case, and -1 that indicates error. And we should use the errno to know what the error is.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run etcd and the
write
syscall returns -1What did you expect to see?
According to the man page of syscall
write
, itSo
-1
is a common case for write, but the program fails in this case.What did you see instead?
The runtime should handle this error, but the code in
netpoll_epoll.go
andnetpoll_kqueue.go
seems not.go/src/runtime/netpoll_epoll.go
Lines 85 to 96 in e8cda0a
The piece of code shows that it handles the return number of
write
, but it seems the return value can only be the length of write, which is1
in this case, and-1
that indicates error. And we should use theerrno
to know what the error is.The text was updated successfully, but these errors were encountered: