about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-14 19:22:50 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-14 19:22:50 +0100
commit7b21ebe964887c27efad2bb64f160ba8ce8023cd (patch)
treef52d5e1eefa5a0471f668fd4cb73f47a4c3edb79
parent84ebec210b89e5925917dc6d6bab31007250e9af (diff)
downloadchawan-7b21ebe964887c27efad2bb64f160ba8ce8023cd.tar.gz
pager: enable wait in runMailcapWritePipe
Otherwise, container will just happily kill the buffer and with it the
loader process before it would have had the chance to stream out the
input into the external process.
-rw-r--r--src/local/pager.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim
index a6c6c9ad..0e4f738a 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -1002,7 +1002,7 @@ proc runMailcapWritePipe(pager: Pager, container: Container,
     # parent
     discard close(pipefd[0])
     let fd = pipefd[1]
-    let p = container.redirectToFd(fd, wait = false, cache = false)
+    let p = container.redirectToFd(fd, wait = true, cache = false)
     discard close(fd)
     if needsterminal:
       var x: cint