-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
process: add onClose event #6595
Conversation
72b83c5
to
9ab299d
Compare
@@ -44,6 +44,14 @@ export class MultiRingBufferReadableStream extends stream.Readable implements Di | |||
this.deq(size); | |||
} | |||
|
|||
_destroy(err: Error | undefined, callback: (err?: Error) => void): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marcdumais-work someone has to review and test it, i'm not familiar with it
@marechal-p Please fill in |
d00b169
to
5e093bf
Compare
5e093bf
to
ab9dd9d
Compare
ab9dd9d
to
6404e6b
Compare
I will need to wait until I get access to a Windows machine to check why part of the test suite is failing there... |
@marechal-p Could you ask colleagues to test terminal preservation between reloads that it works like on master? |
I am testing the reload case |
Add a `onClose` convenience event on processes, fired when all the streams are supposed to be closed. Signed-off-by: Paul Maréchal <paul.marechal@ericsson.com>
6404e6b
to
35d3ddf
Compare
I a bit tested killing tasks with different kill signal, tested exit terminal, restore task output after page refresh, didn't found regression. |
I also did not find regressions, quickly testing this PR. |
It would probably be good to test this on Windows, since process execution is different. |
Tried on Windows; tests are green, couldn't find new issues at runtime. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not tested, but @marcdumais-work and @AndrienkoAleksandr did and code looks reasonable.
What it does
WIP
Add a
onClose
convenience event on processes, fired when all thestreams are supposed to be closed.
Fixes #6587
How to test
yarn run test
should passReview checklist
Reminder for reviewers