Skip to content

Commit

Permalink
test6
Browse files Browse the repository at this point in the history
Signed-off-by: George Pyrros <[email protected]>
  • Loading branch information
George Pyrros committed Aug 17, 2023
1 parent f19b3be commit 0f11a03
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,17 @@ impl Agent {
path.pop();
cmd.env("VACCEL_BACKENDS", path);
let mut child = cmd.spawn()?;
let pid = match child.id() {
Some(id) => {
println!("VACCEL SPAWNED with id: {}", id);
id
}
None => {
let exit_status = child.wait().await?;
bail!("VACCEL BAD SPAWN with exit status: {:?}", exit_status);
}
};
self.state = State::ON { pid };
// let pid = match child.id() {
// Some(id) => {
// println!("VACCEL SPAWNED with id: {}", id);
// id
// }
// None => {
// let exit_status = child.wait().await?;
// bail!("VACCEL BAD SPAWN with exit status: {:?}", exit_status);
// }
// };
// self.state = State::ON { pid };
//FIXME We need to figure out if there is a way for correct zombie reap in case of panic
Ok(())
}
Expand Down

0 comments on commit 0f11a03

Please sign in to comment.