Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Netpoll
Commits
e5d0912d
Commit
e5d0912d
authored
3 years ago
by
Hchen
Browse files
Options
Download
Email Patches
Plain Diff
fix: log nil pointer
parent
eb467549
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
poll_default_linux.go
+2
-2
poll_default_linux.go
with
2 additions
and
2 deletions
+2
-2
poll_default_linux.go
+
2
-
2
View file @
e5d0912d
...
...
@@ -238,9 +238,9 @@ func (p *defaultPoll) Control(operator *FDOperator, event PollEvent) error {
op
,
evt
.
events
=
syscall
.
EPOLL_CTL_DEL
,
syscall
.
EPOLLIN
|
syscall
.
EPOLLOUT
|
syscall
.
EPOLLRDHUP
|
syscall
.
EPOLLERR
err
:=
EpollCtl
(
p
.
fd
,
op
,
operator
.
FD
,
&
evt
)
if
err
!=
nil
{
fmt
.
Printf
(
"DEBUG NETPOLL: operator Detach failed ! op.FD=%d, op=%p,
op.pollfd[%d],
this.pollfd[%d] error=%s
\n
"
,
fmt
.
Printf
(
"DEBUG NETPOLL: operator Detach failed ! op.FD=%d, op=%p, this.pollfd[%d] error=%s
\n
"
,
operator
.
FD
,
operator
,
operator
.
poll
.
(
*
defaultPoll
)
.
fd
,
p
.
fd
,
p
.
fd
,
err
.
Error
())
}
return
err
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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