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" => {
|
"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")?;
|
||||||
|
|
Loading…
Reference in New Issue