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
Wrongful ELIFECYCLE error on program termination #7164
Comments
ah there we go, here i was blaming turborepo for that |
The error is here, in the if (signal && signal !== "SIGINT") { |
When a child process sends the INT signal, pnpm should not assume child failed to terminate Closes pnpm/pnpm#7164
When a child process sends the INT signal, pnpm should not assume child failed to terminate Closes pnpm/pnpm#7164
When a child process sends the INT signal, pnpm should not assume child failed to terminate Closes pnpm/pnpm#7164
When a child process sends the INT signal, pnpm should not assume child failed to terminate Closes pnpm/pnpm#7164 Co-authored-by: Yanick Rochon <yanick.rochon@dynamicly.com>
According to the reverted changes, this issue was not resolved. |
What reverted changes? I have not published your changes yet because the tests are failing on Windows. |
@zkochan ah! my bad, I received this notification on my phone : I don't like checking source codes on a small device, so I assumed the PR had been reverted. Is it possible to have a Windows CI environment to catch these errors before merged PRs? |
CI was not configured on that repository. I have configured it and in the future it won't happen again. |
should this issue be re-opened then? |
We met similar issue in pnpm 9.0.2 . Please reopen the issue. The scripts are like: {
"scripts": {
"dev": "pnpm watch",
"watch": "node watch1.js & node watch2.js"
}
}
|
Verify latest release
pnpm version
8.8.0
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI, Hooks
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
turbo
Describe the Bug
When launching
pnpm next dev
, then CTRL+C, no error is emitted. However launching throughturbo
, the signal received is correct,SIGINT
, howeverpnpm
ignores it.The following code is found in
dist/pnpm.cjs
, line 98629 (I cannot find that code in this repository)The
signal
received isSIGINT
, which is correct, and thecode
isnull
, which also correct. However, the condition ignores the signal and creates aCHILD_PROCESS_FAILED
regardless of it's value.Expected Behavior
When pressing CTRL+C,
pnpm
should not throw an error.Which Node.js version are you using?
18.15.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
The text was updated successfully, but these errors were encountered: