Skip to content

Commit

Permalink
Fix FD CLOSE (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
Comolli authored Apr 26, 2021
1 parent eeacc8a commit 631f725
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions poller/epoll.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func Create() (*Poller, error) {

r0, _, errno := unix.Syscall(unix.SYS_EVENTFD2, 0, 0, 0)
if errno != 0 {
_ = unix.Close(fd)
return nil, errno
}
eventFd := int(r0)
Expand Down

0 comments on commit 631f725

Please sign in to comment.