Skip to content

lib: Know when a process ended due to the child_process.spawn() timeout option #51561 - #51608

Closed
FranciscoMateusVG wants to merge 3 commits into
nodejs:mainfrom
FranciscoMateusVG:fr_51561
Closed

FranciscoMateusVG wants to merge 3 commits into
nodejs:mainfrom
FranciscoMateusVG:fr_51561

Conversation

@FranciscoMateusVG

Copy link
Copy Markdown

Feature: #51561

Having a way to know whether the process ended due to the timeout option by checking childProcess.timedOut = true

@nodejs-github-bot nodejs-github-bot added child_process Issues and PRs related to the child_process subsystem. needs-ci PRs that need a full CI run. labels Jan 30, 2024
@aduh95 aduh95 added the semver-minor PRs that contain new features and should be released in the next minor version. label May 12, 2024
@aduh95

aduh95 commented May 12, 2024

Copy link
Copy Markdown
Contributor

/cc @nodejs/child_process

@sindresorhus

Copy link
Copy Markdown

Can someone review?

@FranciscoMateusVG

Copy link
Copy Markdown
Author

Wondering @RafaelGSS if there is someone i can call out to check this. Its being opened a while and there are some people still interested on this merge looking at this thread #51561 (comment)

@RafaelGSS RafaelGSS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not on my computer right now - I can check this PR later. But, if you are certain we should have a new property on child, we must document it.

Document the timedOut boolean property on ChildProcess that indicates
whether the child process was killed due to a timeout option.

Refs: nodejs#51561
@FranciscoMateusVG

Copy link
Copy Markdown
Author

@RafaelGSS done!

@RafaelGSS RafaelGSS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

CI is red

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been marked as stale due to 90 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

@github-actions github-actions Bot added the stale Issues and PRs marked stale due to inactivity and scheduled for automatic closure. label Jul 28, 2026
@avivkeller avivkeller closed this Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

child_process Issues and PRs related to the child_process subsystem. needs-ci PRs that need a full CI run. semver-minor PRs that contain new features and should be released in the next minor version. stale Issues and PRs marked stale due to inactivity and scheduled for automatic closure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants