]> git.ipfire.org Git - thirdparty/util-linux.git/commit
script: kill child process on error
authorKarel Zak <kzak@redhat.com>
Mon, 21 Sep 2020 10:51:02 +0000 (12:51 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 21 Sep 2020 10:58:46 +0000 (12:58 +0200)
commit8deb45fc5682c3ac0903a3e2b947ceedcc4ab7d6
tree15b6922e25a686e0ee345e92a25257687191324f
parent5c6903b159e389a4c51327f78300a81ddfede1e0
script: kill child process on error

The recent change in code improves main-pool on error, but we need
to kill child process if it still running to avoid hang up in next
waitpid().

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