]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Improve detection of end of the process by GNAT.Expect
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Aug 2019 08:31:20 +0000 (08:31 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Aug 2019 08:31:20 +0000 (08:31 +0000)
commitebaebbd1bb3809e8a97c35f2492559e5973ba2b5
treef30331d48cdf6701e5ea6d17cd047fe2780fd6b1
parentd711075b57f2c010d83950b02bfc45671e9c2326
[Ada] Improve detection of end of the process by GNAT.Expect

'read' system call may be interrupted by signal with 'errno' is set to
EINTER. In this case, re-try a few times.

2019-08-21  Vadim Godunko  <godunko@adacore.com>

gcc/ada/

* libgnat/g-expect.adb (Expect_Internal): Attempt to read
several times when 'read' returns non-positive.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@274791 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/libgnat/g-expect.adb