From 7b21ebe964887c27efad2bb64f160ba8ce8023cd Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 14 Feb 2024 19:22:50 +0100 Subject: 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. --- src/local/pager.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/local/pager.nim') 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 -- cgit 1.4.1-2-gfad0 hawan - a web browser for your terminal (mirror)ahoang <ahoang@tilde.institute>
about summary refs log tree commit diff stats
path: root/src/types/dispatcher.nim
blob: cd668a15e84315079e5692bb73e793debc610455 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12