Release the stdio lock before chunking

This commit is contained in:
Olivier 'reivilibre' 2021-11-16 07:34:04 +00:00
parent c0f4f271ab
commit 066292b6fe
1 changed files with 4 additions and 0 deletions

View File

@ -214,7 +214,11 @@ pub fn handler_stdio() -> anyhow::Result<()> {
} }
"chunk" => { "chunk" => {
info!("Chunking."); info!("Chunking.");
drop(read);
drop(write);
chunking_stdio()?; chunking_stdio()?;
read = stdin.lock();
write = stdout.lock();
} }
"exit" => { "exit" => {
write_message(&mut write, &"exit")?; write_message(&mut write, &"exit")?;