Release the stdio lock before chunking
This commit is contained in:
		
							parent
							
								
									c0f4f271ab
								
							
						
					
					
						commit
						066292b6fe
					
				@ -214,7 +214,11 @@ pub fn handler_stdio() -> anyhow::Result<()> {
 | 
			
		||||
            }
 | 
			
		||||
            "chunk" => {
 | 
			
		||||
                info!("Chunking.");
 | 
			
		||||
                drop(read);
 | 
			
		||||
                drop(write);
 | 
			
		||||
                chunking_stdio()?;
 | 
			
		||||
                read = stdin.lock();
 | 
			
		||||
                write = stdout.lock();
 | 
			
		||||
            }
 | 
			
		||||
            "exit" => {
 | 
			
		||||
                write_message(&mut write, &"exit")?;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user