pager: Fix deadlock when using built-in pager
authorFelix Riemann <felix.riemann@sma.de>
Wed, 29 May 2019 19:17:42 +0000 (21:17 +0200)
committerAdrian Bunk <bunk@debian.org>
Thu, 30 Mar 2023 19:32:31 +0000 (20:32 +0100)
commit7c40b57d052bb6538f147dca0e2e7814e73d80cb
tree9f65dc574ffce807453c5d39f263efd1cd01485c
parent3e6888a0f7c1a284e3136e88647ea4ceaef1b659
pager: Fix deadlock when using built-in pager

The parent is waiting for an EOF on the pipe transmitting the pager name
before starting to send data. With external pagers this happens due to
execlp() CLOEXEC'ing the pipe, so the internal pager needs to close it
manually.

Gbp-Pq: Name 0003-pager-Fix-deadlock-when-using-built-in-pager.patch
src/shared/pager.c