add extra print for EpollWait for debugging

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-11-11 15:28:29 +01:00
parent 28aea97698
commit 68a3244b6b
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ func Ping(address string, timeout time.Duration) error {
var nEvents int var nEvents int
nEvents, err = unix.EpollWait(epfd, epollEvents[:], int(timeout.Milliseconds())) nEvents, err = unix.EpollWait(epfd, epollEvents[:], int(timeout.Milliseconds()))
log.Println("EpollWait err:", err)
if err != nil { if err != nil {
return os.NewSyscallError("epoll_wait", err) return os.NewSyscallError("epoll_wait", err)
} }