diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a96309..26dcd6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +## Version 0.4.0 (2024/10/17) + +### Issues Closed + +* [Issue 72](https://github.com/andfoy/winpty-rs/issues/72) - FEATURE REQUEST: Callback or blocking method to wait for exit of spawned process ([PR 79](https://github.com/andfoy/winpty-rs/pull/79) by [@andfoy](https://github.com/andfoy)) + +In this release 1 issue was closed. + +### Pull Requests Merged + +* [PR 79](https://github.com/andfoy/winpty-rs/pull/79) - Prevent reading thread from hanging if process has stopped, by [@andfoy](https://github.com/andfoy) ([72](https://github.com/andfoy/winpty-rs/issues/72)) + +In this release 1 pull request was closed. + + ## Version 0.3.16 (2024/08/09) diff --git a/tests/conpty.rs b/tests/conpty.rs index 08dcca1..13cf964 100644 --- a/tests/conpty.rs +++ b/tests/conpty.rs @@ -209,7 +209,7 @@ fn wait_for_exit() { assert_eq!(pty.get_exitstatus().unwrap(), None); pty.write("exit\r\n".into()).unwrap(); - pty.wait_for_exit(); + let _ = pty.wait_for_exit(); assert!(!pty.is_alive().unwrap()); assert_eq!(pty.get_exitstatus().unwrap(), Some(0)) diff --git a/tests/winpty.rs b/tests/winpty.rs index 9fd7573..af10e4b 100644 --- a/tests/winpty.rs +++ b/tests/winpty.rs @@ -192,7 +192,7 @@ fn wait_for_exit() { assert_eq!(pty.get_exitstatus().unwrap(), None); pty.write("exit\r\n".into()).unwrap(); - pty.wait_for_exit(); + let _ = pty.wait_for_exit(); assert!(!pty.is_alive().unwrap()); assert_eq!(pty.get_exitstatus().unwrap(), Some(0))