-
Notifications
You must be signed in to change notification settings - Fork 253
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
block signals during forking #218
Conversation
good for me |
The tests cover:
Tested on Ubuntu 14 & 16, OpenIndiana (Solaris) and FreeBSD 11.0. Up for review and tests on OSX. |
Very nice ! Would be very cool to have that, as it is a bit of a problem when you have clean up to do in your "main" process if user interrupt it. |
Just checking if this will merge soon. Sorry for being pushy, but it is kind of important for my project. |
This is quite a serious bug. Can someone merge it in already please? |
block signals during forking (microsoft#218)
We really need this fix, what is blocking its integration? |
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.
@jerch I don't really understand the change in pty.cc but if you think it's good and low risk for VS Code then I'm fine to merge it in.
@Tyriar Well the changes do the following:
I dont expect negative side effects on vscode here, but cannot tell that for sure. There is a small chance, that some code might rely on the faulty handling of the old code. I think removing the race conditions makes things more stable (its just an edge case, thus hardly triggered/seen by anyone, but I think that the old code could segfault the process if triggered). And not resetting the SIGINT handler in the parent should fix the issues most ppl have with the old code. So yes I think this is good to go. You still might want to check in vscode, if spawning/closing pty processes triggers weird behavior afterwards like dysfunctional |
Merging and will see if there are problems in the first vscode 1.45 insiders build |
Main change is microsoft/node-pty#218
Any update on getting this into a release? |
@NuSkooler you can use the |
Main change is microsoft/node-pty#218
WIP - do not merge (yet)This is a first version to deal with the signal problem during spawning the pty and forking.
Not tested yet due to missing test cases.(some test cases added).