Skip to content

Fix crash when removing a kqueue entry in response to a fs event#1

Open
MichaelBuckley wants to merge 1 commit intouliwitness:masterfrom
MichaelBuckley:fix-crash-on-remove
Open

Fix crash when removing a kqueue entry in response to a fs event#1
MichaelBuckley wants to merge 1 commit intouliwitness:masterfrom
MichaelBuckley:fix-crash-on-remove

Conversation

@MichaelBuckley
Copy link
Copy Markdown

Hello Uli,

This is a patch to a timing-related crash reported by some Transmit users. It only occurs because we are removing entries in response to file system events. which may not be typical usage. In this case, if there are more messages in the queue, a crash can occur if removal completes before the messages are processed.

Since this may not be a typical use case, we weren't sure if you'd want to accept this patch, but it definitely solved a problem for us, and may solve a problem for others. If you have any concerns about the implementation, I would be happy to revise it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant