summaryrefslogtreecommitdiff
path: root/internal/eventloop_exit.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/eventloop_exit.go')
-rw-r--r--internal/eventloop_exit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/eventloop_exit.go b/internal/eventloop_exit.go
index a9dd4c5..c74ecea 100644
--- a/internal/eventloop_exit.go
+++ b/internal/eventloop_exit.go
@@ -253,8 +253,8 @@ func (e *eventLoop) handleFcntlExit(ep *event.Pair, fcntlEv *types.FcntlEvent) b
e.recyclePair(ep, "Dropped malformed fcntl exit event")
return false
}
- // Syscall returned -1, nothing was changed with the fd
- if retEvent.Ret == -1 {
+ // Syscall returned a negative errno, nothing was changed with the fd.
+ if retEvent.Ret < 0 {
return true
}