Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-reuseport
Commits
91d76fbb
Unverified
Commit
91d76fbb
authored
Oct 06, 2016
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EINTR on EpollWait is normal an can be ignored
parent
c71ceca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
singlepoll/linux.go
singlepoll/linux.go
+9
-1
No files found.
singlepoll/linux.go
View file @
91d76fbb
...
...
@@ -177,7 +177,15 @@ func poller(epfd int, evfd *eventfd.EventFD) {
// to big and GC overhead increases
events
:=
make
([]
syscall
.
EpollEvent
,
128
)
n
,
err
:=
syscall
.
EpollWait
(
epfd
,
events
,
-
1
)
if
err
!=
nil
{
switch
err
{
case
nil
:
// everything is great
case
syscall
.
EINTR
:
// ignore
continue
default
:
// log
log
.
Errorf
(
"EpollWait returned error: %s. Continuing."
,
err
.
Error
())
continue
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment