Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Send proper bitmask for what kinds of events uv_fd can emit
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Oct 17, 2019
1 parent 723b85c commit 32b9b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GLib/signals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ function __init__gmainloop__()
src, @cfunction(g_yield, Cint, (UInt,)), 1, C_NULL)

uv_fd = Sys.iswindows() ? -1 : ccall(:uv_backend_fd, Cint, (Ptr{Nothing},), Base.eventloop())
global uv_pollfd = _GPollFD(uv_fd, typemax(Cushort))
global uv_pollfd = _GPollFD(uv_fd, 0x1)
if (uv_pollfd::_GPollFD).fd != -1
ccall((:g_source_add_poll, GLib.libglib), Nothing, (Ptr{Nothing}, Ptr{_GPollFD}), src, Ref(uv_pollfd::_GPollFD))
end
Expand Down

0 comments on commit 32b9b3b

Please sign in to comment.