We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab46319 commit 69e56d5Copy full SHA for 69e56d5
src/linux.rs
@@ -58,7 +58,7 @@ impl ChildProcess for LinuxChildProcess {
58
type PipeIn = LinuxWritePipe;
59
type PipeOut = LinuxReadPipe;
60
fn get_exit_code(&self) -> Result<Option<i64>, Error> {
61
- self.wait_for_exit(Duration::from_millis(1))?;
+ self.wait_for_exit(Some(Duration::from_millis(1)))?;
62
let ec = self.exit_code.load(Ordering::SeqCst);
63
let ec = match ec {
64
EXIT_CODE_STILL_RUNNING => None,
@@ -94,7 +94,7 @@ impl ChildProcess for LinuxChildProcess {
94
}
95
96
fn is_finished(&self) -> bool {
97
- Ok(self.exit_code.load(Ordering::SeqCst) != EXIT_CODE_STILL_RUNNING)
+ self.exit_code.load(Ordering::SeqCst) != EXIT_CODE_STILL_RUNNING
98
99
100
0 commit comments