]> git.ipfire.org Git - thirdparty/util-linux.git/commit
script: fix signalfd use
authorKarel Zak <kzak@redhat.com>
Wed, 9 Oct 2019 14:43:50 +0000 (16:43 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 9 Oct 2019 14:51:34 +0000 (16:51 +0200)
commitb1154c4ece2192345efe1a3fb835ae28c8f92154
tree74855258629db9317f91c805f04c325f2c68b306
parent125314c04adcbee8281b95ef8018d9468313b9ff
script: fix signalfd use

It's necessary to create signal-fd before fork() to get SIGCHLD,
because child could be faster than our code.

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/pty-session.c
term-utils/script.c
tests/ts/script/buffering-race