-
Notifications
You must be signed in to change notification settings - Fork 104
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
Ctrl-C can't stop windows processes #332
Comments
If you use WSL ping rather than Windows ping.exe, it works. |
It might be possible to handle this in wslbridge however, therefore reopening. @Biswa96? |
If I run wslbridge2.exe directly in CMD, then Ctrl+C works with ping.exe. |
Wouldn't the fact that it works in windows terminal imply otherwise? Or are you saying this is a wslbridge issue?
Same here |
No, things are more subtle here.
Not quite sure, but wslbridge steps in at the pty level and could propagate special handling to the WSL backend. |
Interestingly, running wslbridge in wsltty and ping.exe inside wslbridge makes Ctrl-C work again. Doesn't Workcmd → wsl → tmux → ping.exe Workscmd → wsl → ping.exe Long story short: Manually running wslbridge as the root process inside wsltty makes everything work correctly. But I thought that's what wsltty was doing already? Something seems wrong here. |
Which means exactly what? Changed the shortcut?
Yes, puzzled what you are doing. |
Start wsltty, run I am confused because wsltty seems to be running wslbridge already, so it's surprising to me that a second layer of wslbridge fixes the issue. |
Steps to reproduce:
ping.exe localhost
Expected outcome:
Actual outcome:
wsltty version: 3.5.4
This happens with both wsl1 and wsl2
ctrl-c works with linux processes
ctrl-c works when running wsl inside the windows terminal.
The text was updated successfully, but these errors were encountered: