Skip to content

Commit 359314e

Browse files
committed
Small tidy up.
1 parent 0549019 commit 359314e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/ruby/truffleruby/core/truffle/io_operations.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ def self.select(readables, readable_ios, writables, writable_ios, errorables, er
202202
# This method will return a true if poll returned without error
203203
# with an event within the timeout, false if the timeout expired,
204204
# or raises an exception for an errno.
205-
def self.poll(io, events, timeout)
206-
if (events & POLLIN) != 0
205+
def self.poll(io, event_mask, timeout)
206+
if (event_mask & POLLIN) != 0
207207
return 1 unless io.__send__(:buffer_empty?)
208208
end
209209

@@ -223,7 +223,7 @@ def self.poll(io, events, timeout)
223223
end
224224

225225
begin
226-
primitive_result = Truffle::POSIX.truffleposix_poll(Primitive.io_fd(io), events, remaining_timeout)
226+
primitive_result = Truffle::POSIX.truffleposix_poll(Primitive.io_fd(io), event_mask, remaining_timeout)
227227
result =
228228
if primitive_result < 0
229229
errno = Errno.errno

0 commit comments

Comments
 (0)