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

fix: move midline-flush.c sleep to occur between flush() invocations #12

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

limeytexan
Copy link
Contributor

We were doing the sleep() invocation between writing to the stdout/err file descriptors rather than between the times we were flushing them. This update divides the time slept by 3 (bringing it to approx 3x what it was before we encountered CI failures), while moving the sleep between the two flush() invocations.

It also adds an extra sleep following the second flush() invocation to make sure that the kernel has time to communicate its contents before the subsequent test.

We were doing the sleep() invocation between writing to the stdout/err
file descriptors rather than between the times we were flushing them.
This update divides the time slept by 3 (bringing it to approx 3x what
it was before we encountered CI failures), while moving the sleep between
the two flush() invocations.

It also adds an extra sleep following the second flush() invocation to
make sure that the kernel has time to communicate its contents before
the subsequent test.
@limeytexan limeytexan requested a review from ysndr February 4, 2025 15:14
@ysndr ysndr merged commit 2089837 into main Feb 4, 2025
4 checks passed
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