Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Make operations on named pipes more consistent #5

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

fwerner
Copy link
Owner

@fwerner fwerner commented Aug 9, 2024

This PR attempts to add explicit tests for named pipes.

Two issues have been identified so far:

  1. Opening a named pipe in write mode should wait for a writer to attach until the timeout is reached. This has been fixed in 34a81d8.
  2. Reading or waiting on a named pipe that has no writer attached should consistently return EOF. This is currently not the case for bufio_read, see the test added in 271899e.

@fwerner fwerner marked this pull request as draft August 9, 2024 16:18
@fwerner fwerner requested a review from ssailer August 9, 2024 16:18
@fwerner
Copy link
Owner Author

fwerner commented Aug 19, 2024

I've fixed the behaviour and also found that we forgot to set standard pipes to non-blocking mode. Seems like we should have noticed this before, so a review and some further tests are needed. 👀

src/bufio.c Outdated Show resolved Hide resolved
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.

2 participants