Skip to content

Commit

Permalink
Set sync values for Win32 and WASI, as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaskins committed Nov 28, 2024
1 parent 1fcf743 commit e764834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/crystal/system/wasi/file_descriptor.cr
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module Crystal::System::FileDescriptor
end

private def system_blocking_init(value)
self.sync = value
end

private def system_reopen(other : IO::FileDescriptor)
Expand Down
1 change: 1 addition & 0 deletions src/crystal/system/win32/file_descriptor.cr
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ module Crystal::System::FileDescriptor

private def system_blocking_init(value)
@system_blocking = value
self.sync = value
Crystal::EventLoop.current.create_completion_port(windows_handle) unless value
end

Expand Down

0 comments on commit e764834

Please sign in to comment.