Skip to content

Commit

Permalink
fix usage of exit code (#5178)
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej authored Oct 24, 2024
2 parents 9510522 + 5bec5be commit 02039f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wasix/src/syscalls/wasix/thread_spawn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,15 @@ fn call_module<M: MemorySize>(
.runtime
.on_taint(TaintReason::UnknownWasiVersion);
ret = Errno::Noexec;
exit_code = Some(ExitCode::Other(128 + ret as i32));
exit_code = Some(ExitCode::from(128 + ret as i32));
}
Err(err) => {
debug!("failed with runtime error: {}", err);
env.data(&store)
.runtime
.on_taint(TaintReason::RuntimeError(err));
ret = Errno::Noexec;
exit_code = Some(ExitCode::Other(128 + ret as i32));
exit_code = Some(ExitCode::from(128 + ret as i32));
}
}
} else {
Expand Down

0 comments on commit 02039f0

Please sign in to comment.