Skip to content

refactor(index): ignore stdin for child processes - #619

Merged
Fdawgs merged 3 commits into
mainfrom
perf/stdin-pipe
Aug 21, 2026
Merged

Fdawgs merged 3 commits into
mainfrom
perf/stdin-pipe

Conversation

@Fdawgs

@Fdawgs Fdawgs commented Aug 21, 2026

Copy link
Copy Markdown
Owner

Ignore stdin for all child processes since none require input. This avoids creating an unused pipe and prevents children from waiting for stdin, whilst keeping stdout and stderr piped.

Checklist

Copilot AI lite review requested due to automatic review settings August 21, 2026 12:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates how src/index.js launches the UnRTF binary by explicitly ignoring stdin for all spawned child processes, while keeping stdout and stderr piped for programmatic consumption.

Changes:

  • Set child process stdio to ["ignore", "pipe", "pipe"] to avoid unused stdin pipes and prevent children from waiting for input.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/index.js Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

src/index.js:15

  • The behavior introduced here is not asserted by the existing constructor or conversion tests: their child-process mocks return output but never inspect the options passed to spawnSync or spawn. Please add focused coverage verifying that each child-process path receives stdio: ["ignore", "pipe", "pipe"], so a later options refactor cannot silently restore the unused stdin pipe.
		stdio: ["ignore", "pipe", "pipe"],

@Fdawgs
Fdawgs merged commit 95bb27e into main Aug 21, 2026
17 checks passed
@Fdawgs
Fdawgs deleted the perf/stdin-pipe branch August 21, 2026 14:36
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