diff options
Diffstat (limited to 'src/pipeline/mod.rs')
-rw-r--r-- | src/pipeline/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pipeline/mod.rs b/src/pipeline/mod.rs index 7f8ac03..ebaf8e6 100644 --- a/src/pipeline/mod.rs +++ b/src/pipeline/mod.rs @@ -79,8 +79,6 @@ pub async fn run() -> anyhow::Result<i32> { let (commands, mut env) = read_data(shell_read).await?; run_commands(&commands, &mut env, &shell_write).await?; let status = *env.latest_status(); - - env.update()?; write_event(&shell_write, Event::Exit(env)).await?; if let Some(signal) = status.signal() { @@ -210,7 +208,7 @@ async fn run_pipeline( let (children, pg) = spawn_children(pipeline, env, &io)?; let status = wait_children(children, pg, env, &io, shell_write).await; set_foreground_pg(nix::unistd::getpid())?; - env.set_status(status); + env.update(status)?; Ok(()) } |