fix subprocess exec for unix

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

View File

@ -89,7 +89,10 @@ pub fn exec(args: &ArgMatches) -> Result<(), CliError> {
}
#[cfg(unix)]
cmd.exec().map_err(|e| ExecError::ExecutionFailed(e))?;
{
let e = cmd.exec();
Err(ExecError::ExecutionFailed)
}
#[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;