]> git.ipfire.org Git - thirdparty/util-linux.git/commit
script: don't wait for empty descriptors if child is dead
authorKarel Zak <kzak@redhat.com>
Thu, 16 Jan 2014 11:22:13 +0000 (12:22 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 16 Jan 2014 11:22:13 +0000 (12:22 +0100)
commit38374be4c857bfe2129d278e81fe4ed505ef0077
tree73f1b4ab3dccd8f06fdf18ca68d520366a546dec
parentc62f164cf15c23b7bdc03e59707c1d609b472c50
script: don't wait for empty descriptors if child is dead

The current code waits for empty file master and slave descriptors,
but it makes sense only if there is child process that cares (read)
about data in the descriptors.

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