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, 29 Jun 2023 13:57:02 +0000 (14:57 +0100)
commit646dad6ecd27866f27c04edfa2ece578b7a00119
treeca143f6dac8c63a922aad3391f1391e9f25f7bf9
parent296f48445ceab2e4a695bd370f2c03b886247c81
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