Skip to content

Read stdout before stderr#13

Merged
vormwald merged 1 commit intovormwald:mainfrom
marckohlbrugge:main
Jan 5, 2025
Merged

Read stdout before stderr#13
vormwald merged 1 commit intovormwald:mainfrom
marckohlbrugge:main

Conversation

@marckohlbrugge
Copy link
Contributor

@marckohlbrugge marckohlbrugge commented Jan 3, 2025

In some cases trying to read stderror before stdout can cause a deadlock. This PR swaps the order so stdout is read first.

Closes #12

@marckohlbrugge
Copy link
Contributor Author

Unfortunately I haven't been able to pinpoint the exact conditions where reading from stderr first causes a deadlock. I just know that it does for my particular codebase and swapping the reads fixes it. Since it seems like a harmless change, I figured it might be worth a PR despite not including any test coverage.

@marckohlbrugge
Copy link
Contributor Author

I cannot provide my codebase, so I'll provide the next best thing which is a screen recording demonstrating the difference this PR makes for me:

CleanShot.2025-01-03.at.17.40.48.mp4

@vormwald
Copy link
Owner

vormwald commented Jan 5, 2025

Oh yeah, this looks like the correct ordering. Thanks so much for the PR!

@vormwald vormwald merged commit 2614d16 into vormwald:main Jan 5, 2025
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.

Using @tailwindcss/typography hangs build process

2 participants