Mistake in init using wrong fd in dup2, update userutils
This commit is contained in:
		
							parent
							
								
									6a5acfd9a1
								
							
						
					
					
						commit
						da62b38adc
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -15,8 +15,8 @@ fn switch_stdio(stdio: &str) -> Result<()> {
 | 
			
		|||
    let stderr = OpenOptions::new().write(true).open(stdio)?;
 | 
			
		||||
 | 
			
		||||
    syscall::dup2(stdin.as_raw_fd(), 0, &[]).map_err(|err| Error::from_raw_os_error(err.errno))?;
 | 
			
		||||
    syscall::dup2(stdout.as_raw_fd(), 0, &[]).map_err(|err| Error::from_raw_os_error(err.errno))?;
 | 
			
		||||
    syscall::dup2(stderr.as_raw_fd(), 0, &[]).map_err(|err| Error::from_raw_os_error(err.errno))?;
 | 
			
		||||
    syscall::dup2(stdout.as_raw_fd(), 1, &[]).map_err(|err| Error::from_raw_os_error(err.errno))?;
 | 
			
		||||
    syscall::dup2(stderr.as_raw_fd(), 2, &[]).map_err(|err| Error::from_raw_os_error(err.errno))?;
 | 
			
		||||
 | 
			
		||||
    Ok(())
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1 +1 @@
 | 
			
		|||
Subproject commit ccae9c0b0abb9b6d2708655bdd4ef2f25be42d67
 | 
			
		||||
Subproject commit 2fdef17559bd25d7f6cd5c2a0a4d1b7897e0beaf
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue