Skip to content

Commit 69e56d5

Browse files
committed
also fix linux
1 parent ab46319 commit 69e56d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/linux.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl ChildProcess for LinuxChildProcess {
5858
type PipeIn = LinuxWritePipe;
5959
type PipeOut = LinuxReadPipe;
6060
fn get_exit_code(&self) -> Result<Option<i64>, Error> {
61-
self.wait_for_exit(Duration::from_millis(1))?;
61+
self.wait_for_exit(Some(Duration::from_millis(1)))?;
6262
let ec = self.exit_code.load(Ordering::SeqCst);
6363
let ec = match ec {
6464
EXIT_CODE_STILL_RUNNING => None,
@@ -94,7 +94,7 @@ impl ChildProcess for LinuxChildProcess {
9494
}
9595

9696
fn is_finished(&self) -> bool {
97-
Ok(self.exit_code.load(Ordering::SeqCst) != EXIT_CODE_STILL_RUNNING)
97+
self.exit_code.load(Ordering::SeqCst) != EXIT_CODE_STILL_RUNNING
9898
}
9999
}
100100

0 commit comments

Comments
 (0)