From 066292b6fe4a6769b390c1033da78a88f1afd7f6 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Tue, 16 Nov 2021 07:34:04 +0000 Subject: [PATCH] Release the stdio lock before chunking --- datman/src/remote/backup_source_responder.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/datman/src/remote/backup_source_responder.rs b/datman/src/remote/backup_source_responder.rs index 26fd1a2..f9ca2cc 100644 --- a/datman/src/remote/backup_source_responder.rs +++ b/datman/src/remote/backup_source_responder.rs @@ -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")?;