-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
dotnet run
doesn't handle ctrl-c well
#4779
Comments
Any progress on this issue? |
👁️ |
@jgoshi let's make sure that any time CLI spins off a process then we wire up passthrough similarly to how it's done in the CoreFx test above. |
@schellap Using the code sample provided in https://github.com/dotnet/corefx/issues/5339, I noticed that just calling dotnet exec directly I see the same problem. It appears that nothing in the app cancel handler gets written out (Console.Writeline doesn't work for some reason). I also notice that Debug.Fail("Attach") causes a crash as well (doesn't let me attach). Any thoughts or suggestions? |
@schellap Any insights? |
@gkhanna79 @ramarag can you guys help out here? |
@livarcocc What specific thing are you looking for? This does not appear to be a host issue. |
This seems pretty important to the |
I wish I could do a +1 on the close status change here. |
does not work on linux if console output is piped.
|
Porting issue https://github.com/dotnet/corefx/issues/5339...
Even if the app being run has a CancelKeyPress handler, the SIGINT generated by typing ctrl-C goes to the
dotnet run
process, killing it.The text was updated successfully, but these errors were encountered: