]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 May 2019 07:54:54 +0000 (09:54 +0200)
commitd8f8b18cdb099ac0604d26037e2f9f9f5bd135ce
tree95348863de15fae1ca3bf16400eba6ca8f929c61
parent38ab1ec9c8be5c4a728b3f27697eb9a3e4b37278
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.
src/shared/pager.c