Comment 8 for bug 1553353

Revision history for this message
Simon Déziel (sdeziel) wrote :

After bisecting util-linux, the problematic commit is:

54c6611d6f7b73609a5331f4d0bcf63c4af6429e is the first bad commit
commit 54c6611d6f7b73609a5331f4d0bcf63c4af6429e
Author: Karel Zak <email address hidden>
Date: Wed Jun 17 15:48:50 2015 +0200

    script: fix EOF problems

    * remove STDIN from poll() if:

      * STDIN already closed -- poll returns POLLHUP, for example:

      echo "date" | script

      * detect EOF as returned by read(), for example:

      script -c "echo Hello" < /dev/null

    * don't write to master when there is still something to read from
      slave (it means shell is not initialized yet or busy)

    Signed-off-by: Karel Zak <email address hidden>

:040000 040000 2cc2b7f5d69f16775151517912dce6ff3a586847 b1a8465b2c3f23c0f41bfb7308af49b92963e77b M term-utils

When using v2.27.1 and reverting just this commit, all is fine.