fix subprocess exec for unix
This commit is contained in:
		@@ -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;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user