diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-14 19:22:50 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-14 19:22:50 +0100 |
commit | 7b21ebe964887c27efad2bb64f160ba8ce8023cd (patch) | |
tree | f52d5e1eefa5a0471f668fd4cb73f47a4c3edb79 /src/local/pager.nim | |
parent | 84ebec210b89e5925917dc6d6bab31007250e9af (diff) | |
download | chawan-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.
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r-- | src/local/pager.nim | 2 |
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 |