Skip to content

Commit

Permalink
Merge pull request #226 from andfoy/update_winpty_rs_0.3.5
Browse files Browse the repository at this point in the history
PR: Update winpty-rs to v0.3.6
  • Loading branch information
andfoy authored Mar 5, 2022
2 parents 6ea0ab7 + 2dd9fcc commit 2246e06
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 24 deletions.
44 changes: 22 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ name = "winpty"
crate-type = ["cdylib"]

[dependencies]
winpty-rs = "0.3.4"
winpty-rs = "0.3.6"

[dependencies.pyo3]
version = "0.16.0"
Expand Down
4 changes: 3 additions & 1 deletion winpty/ptyprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ def isalive(self):
exitstatus or signalstatus of the child. This returns True if the child
process appears to be running or False if not.
"""
return self.pty.isalive()
alive = self.pty.isalive()
self.closed = not alive
return alive

def kill(self, sig=None):
"""Kill the process with the given signal.
Expand Down

0 comments on commit 2246e06

Please sign in to comment.