Repository navigation
host sensors: preserve serial report input in the timeout fallback - #1169
Merged
Merged
Conversation
Contributor
dormancygrace
commented
Dec 2, 2026
dormancygrace
left a comment
Owner
Author
There was a problem hiding this comment.
The saved input descriptor now exists only while the fallback starts the reader. A closed standard input works in both branches, and the watchdog has its own standard streams. Under dash, Bash and BusyBox ash, both paths copied 409,600 bytes exactly, propagated status 7, terminated a sleeping command at the deadline and gave the child no extra fd 3. With a 300,000-byte producer and an early-exiting reader the pipeline returned before the five-second watchdog. No remaining blockers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preserve the pipeline input when the Linux serial sensor helper runs dd in the background. Without timeout(1), a non-interactive shell supplied EOF and an empty report appeared successful.
Verified the actual limit function under dash with and without timeout(1). Both paths delivered the same bytes, propagated exit status 7 and stopped a sleeping command at its deadline.
Final verification
The saved input descriptor now exists only while the fallback starts the reader. A closed standard input works in both branches, and the watchdog has its own standard streams. Under dash, Bash and BusyBox ash, both paths copied 409,600 bytes exactly, propagated status 7, terminated a sleeping command at the deadline and gave the child no extra fd 3. With a 300,000-byte producer and an early-exiting reader the pipeline returned before the five-second watchdog.