close
The Wayback Machine - https://web.archive.org/web/20201101095853/https://github.com/npm/run-script/pull/9
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forward signals to children #9

Closed
wants to merge 6 commits into from
Closed

forward signals to children #9

wants to merge 6 commits into from

Conversation

@nlf
Copy link
Contributor

@nlf nlf commented Oct 26, 2020

this change adds handlers to ensure that signals are forwarded to child processes appropriately. handlers are not added until a process exists that should be monitored, and are removed as soon as all children have exited, carrying the first non-falsey exit code received from a child.

for: npm/cli#1947

nlf added 3 commits Oct 26, 2020
Copy link
Member

@isaacs isaacs left a comment

Some style nits, mostly. Only substantive bit is a question about how we handle multiple signals, and child process exiting (or not exiting) as a result of those signals. (The npm v6 way seems like the worst of both worlds.)

lib/signal-manager.js Outdated Show resolved Hide resolved
test/run-script-pkg.js Outdated Show resolved Hide resolved
lib/signal-manager.js Show resolved Hide resolved
lib/signal-manager.js Outdated Show resolved Hide resolved
nlf added 3 commits Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.