Skip to content

Bound dot_clean output draining after the process exits - #2

Merged
jitdor merged 1 commit into
mainfrom
ccr-50f79bab-c9ld9h
Sep 29, 2026
Merged

jitdor merged 1 commit into
mainfrom
ccr-50f79bab-c9ld9h

Conversation

@jitdor

@jitdor jitdor commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • A backgrounded child that inherits stdout/stderr keeps the pipe open after dot_clean exits, so the unconditional drain wait could outlive the configured timeout (e.g. sleep 30 &; exit 0 blocked ~30s).
  • Read output via a readabilityHandler, wait up to 1s for EOF after exit, then release the handler and close the read end. The timeout path uses the same bounded wait.
  • Add a regression test that runs a script leaving a background sleep 30 holding the pipe and expects a prompt return.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Apys6XL8BAS3tGcbfB2hYu


Generated by Claude Code

A backgrounded child that inherits stdout/stderr keeps the pipe open past
the executable's exit, so the unconditional drain wait could outlive the
configured timeout. Read via a readability handler, wait for EOF with a
short grace period, then release and close the pipe.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Apys6XL8BAS3tGcbfB2hYu
@jitdor
jitdor merged commit a4458ac into main Sep 29, 2026
1 check passed
@jitdor
jitdor deleted the ccr-50f79bab-c9ld9h branch September 29, 2026 11:47
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