Skip to content

Support listening for SharedBuf signal events#3276

Closed
stevenengler wants to merge 1 commit intoshadow:mainfrom
stevenengler:shared-buf
Closed

Support listening for SharedBuf signal events#3276
stevenengler wants to merge 1 commit intoshadow:mainfrom
stevenengler:shared-buf

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

@stevenengler stevenengler commented Jan 7, 2024

In #3250, support for listening for file signal events was added. This was meant for edge-triggered epoll, where shadow could emit a signal when a file's buffer changed even if the file's state didn't change. This adds supports for signals to the SharedBuf type, which is a shared buffer used by pipes and unix sockets.

This is a little awkward to fit in to the existing pipe and unix socket code, but I think it's good enough for now.

Edit: Not planning on merging this since #3243 will contain a similar version, but leaving this PR open so that after #3243 is merged I can see if there's anything in here I still want to keep.

@stevenengler stevenengler self-assigned this Jan 7, 2024
@github-actions github-actions bot added the Component: Main Composing the core Shadow executable label Jan 7, 2024
@stevenengler stevenengler marked this pull request as draft January 7, 2024 05:33
@stevenengler stevenengler deleted the shared-buf branch March 25, 2024 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant