[Ada] GNAT.Expect (Expect_Internal): Try to call 'poll' few times
authorVadim Godunko <godunko@adacore.com>
Tue, 17 Sep 2019 08:01:42 +0000 (08:01 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 17 Sep 2019 08:01:42 +0000 (08:01 +0000)
commit19716ceb1676e1a947527b3ae1d59dce646dd76c
tree74d2ffa557ea394abd18088874c1a9183c3c4900
parentb9bfbf45419a641c0b92b1954b94b73cb3dfb935
[Ada] GNAT.Expect (Expect_Internal): Try to call 'poll' few times

'poll' returns -1 in case of any error (including interruption by a
signal), so call need to be repeated few times to avoid false failures.

2019-09-17  Vadim Godunko  <godunko@adacore.com>

gcc/ada/

* libgnat/g-expect.adb (Expect_Internal): Try to call 'poll' few
times.

From-SVN: r275782
gcc/ada/ChangeLog
gcc/ada/libgnat/g-expect.adb