-
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
Can't pty.kill()
or pty.destroy()
on Windows 10
#34
Comments
I'll have a look, winpty agent probably isn't being cleaned up properly. |
@Tyriar thank you ❤️ Do you think it's safe to ship Hyper with |
I'd avoid shipping just yet as I'll look into this today/tomorrow. FYI I also published 0.6.1 which corrects the compiled JS to fix the Git Bash backspace issue so you can test with that in the meantime. https://github.com/Tyriar/node-pty/releases/tag/0.6.1 |
Same issue on 0.6.1 😕 Will push |
Yep I can repro and have a test, working on fix now. it("should not crash parent process", function(done) {
const term = new WindowsTerminal('cmd.exe', [], {});
term.kill();
// Add done call to deferred function queue to ensure the kill call has completed
term._defer(done);
}); |
Amazing @Tyriar ❤️ Any ETA for the release? |
I'll probably release it later today, need to do some verification first. |
@matheuss actually it would be ideal if you could also verify using |
@Tyriar Perfect 💯 |
@Tyriar you're amazing ❤️ |
@Tyriar the typings mention node-pty/typings/node-pty.d.ts Lines 179 to 185 in cd72d33
Is the type doc incorrect? |
Oops, sorry I misunderstood the |
Whenever I try to kill a pty process with
pty.kill()
orpty.destroy()
, the whole parent process just crashes:The same happens inside Hyper:
I wasn't able to get any relevant logs anywhere, not even on
Event Viewer
.A
try-catch
is useless:The error never gets printed – the parent process just crashes.
If I
pty._close()
, everything works fine. I cannot reproduce this on macOS or Linux.Any ideas? 😥
The text was updated successfully, but these errors were encountered: