-
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
Wrong pid on windows: Error: kill ESRCH #45
Comments
This is also probably the root cause of microsoft/vscode#14286 It's related to winpty, currently it's being set to |
@rprichard is there an easy way to get the winpty agent process ID from |
Yes, you'd call Do you want the PID of the winpty agent or the PID of the process running inside winpty (e.g. The code is currently getting the spawned child process' handle and putting it into
The code doesn't do anything with I'd guess you actually want to use Alternatively, if you really do want the agent PID, then you can fix the handle leak by passing nullptr to winpty_spawn:
|
Thanks @rprichard, I do want the inner process from |
Managed to get this working pretty easily thanks to your help @rprichard 👍 |
Every new started process gets wrong pid which is different from ones shown in
task manager
.Could be reproduced with the demo of xterm.js.
Related to xterm.js issue.
The text was updated successfully, but these errors were encountered: