ch04: Implement kqueue poll for macOS/BSD #42
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 pull request contains a more or less 1:1 translation of the epoll code in ch04/a-epoll to kqueue eliminating the need for macOS and BSD users to run a virtual machine.
My objective in writing this was to motivate myself to understand the content of chapter 4 deeply enough to be capable of performing a translation. With that said I didn't know much about epoll before reading this chapter and knew nothing about kqueue until 4 hours ago, so I'm happy to take any feedback on the topic. However I did go through and attempt to comment and explain the differences between the kqueue code and the epoll code in the book such that a macOS or BSD user could follow the code and the chapter at the same time without a loss of fidelity.
Thank you for writing this book by the way! On occasion you run into a technical book that is just exceeds all your expectations and this is one of them. Well done.