Repository navigation
Port to OpenBSD - #264
Open
moebiusband73 wants to merge 3 commits into
Open
Port to OpenBSD#264moebiusband73 wants to merge 3 commits into
moebiusband73 wants to merge 3 commits into
Conversation
On non-Darwin kqueue targets (FreeBSD, OpenBSD) the loop wakeup was a panicking stub and thread pool completions never woke the loop. A loop blocked in kevent() with no timers could therefore hang forever waiting for thread pool work. Implement the wakeup with a self-pipe registered as a level-triggered EVFILT_READ with zero udata, drained whenever it fires, and wake the loop from thread_perform on all kqueue targets. With the wakeup working, re-enable the thread pool tests that were skipped on FreeBSD and the kqueue thread pool test on all kqueue targets. Also: - async: share the kqueue waitRead between AsyncEventFd and AsyncPipe - bump Zig to 0.17.1 in CI and flake.nix, minimum_zig_version to 0.17.0 - CI: cross-build FreeBSD/OpenBSD targets, add an OpenBSD VM test job - README/comments: list FreeBSD and OpenBSD as supported Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds OpenBSD support in preparation of OpenBSD support for Ghostty.
Also adds a fix in kqueue to implement loop wakeup for BSDs