]> git.ipfire.org Git - thirdparty/util-linux.git/commit
script: fix use of utempter
authorKarel Zak <kzak@redhat.com>
Wed, 16 Nov 2022 08:19:18 +0000 (09:19 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Nov 2022 08:19:18 +0000 (09:19 +0100)
commit6ed644fbf4869a7e042826900eff531cf6660cfb
tree4f0ad034bb3df9180481a1fff5d83b295f26b2c1
parent4681d88ba1034d488814bbbb6e7d06d17e33322d
script: fix use of utempter

libutempter uses SIGCHLD, but script(1) pty implementation completely
control all signals by signalfd and utempter does not work.

The solution is to setup signalfd later (after libutempter use).

Fixes: https://github.com/util-linux/util-linux/issues/1904
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/script.c