fix subprocess exec for unix
This commit is contained in:
parent
ddd1005067
commit
5b9c711008
@ -89,7 +89,11 @@ pub fn exec(args: &ArgMatches) -> Result<(), CliError> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[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)]
|
#[cfg(windows)]
|
||||||
{
|
{
|
||||||
|
@ -275,7 +275,7 @@ impl Crypto {
|
|||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
const TIME_COST: u32 = 8;
|
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.
|
/// we turn it way down in debug builds.
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
const MEM_COST: u32 = 48 * 1024;
|
const MEM_COST: u32 = 48 * 1024;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user