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 b0bffbb commit ab46319Copy full SHA for ab46319
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.poll()?;
+ self.wait_for_exit(Duration::from_millis(1))?;
62
let ec = self.exit_code.load(Ordering::SeqCst);
63
let ec = match ec {
64
EXIT_CODE_STILL_RUNNING => None,
@@ -93,7 +93,7 @@ impl ChildProcess for LinuxChildProcess {
93
}
94
95
96
- fn is_finished(&self) -> Result<bool, Error> {
+ fn is_finished(&self) -> bool {
97
Ok(self.exit_code.load(Ordering::SeqCst) != EXIT_CODE_STILL_RUNNING)
98
99
0 commit comments