fix subprocess exec for unix

This commit is contained in:
Joseph Montanaro 2023-05-09 09:40:49 -07:00
parent ddd1005067
commit 5b9c711008
2 changed files with 6 additions and 2 deletions

View File

@ -89,7 +89,11 @@ pub fn exec(args: &ArgMatches) -> Result<(), CliError> {
}
#[cfg(unix)]
cmd.exec().map_err(|e| ExecError::ExecutionFailed(e))?;
{
let e = cmd.exec(); // never returns if successful
Err(ExecError::ExecutionFailed(e))?;
Ok(())
}
#[cfg(windows)]
{

View File

@ -275,7 +275,7 @@ impl Crypto {
#[cfg(not(debug_assertions))]
const TIME_COST: u32 = 8;
/// But since this takes a million years in an unoptimized build,
/// But since this takes a million years without optimizations,
/// we turn it way down in debug builds.
#[cfg(debug_assertions)]
const MEM_COST: u32 = 48 * 1024;