commit | 380f89e88bc93cf588b427120754680a0829c539 | [log] [tgz] |
---|---|---|
author | David Stevens <[email protected]> | Mon Sep 02 06:29:50 2024 |
committer | Chromeos LUCI <[email protected]> | Mon Sep 02 10:21:57 2024 |
tree | 8ad85f65b7f248dbc8c5111e4d3fd1ad8d90b8f9 | |
parent | 220d5572862d2bd41df3a74decb996d067667b6d [diff] |
CHROMIUM: test_util_common: Fix EINTR handling Calls to fgets don't clear ferror or errno on success or EOF. Therefore it is necessary to manually clear the error state after an EINTR to be able to differentiate the success and failure cases on subsequent iterations. BUG=b:360841319, b:363206134 TEST=cros_run_unit_tests Change-Id: I78cf3dadb3de456b0486143e1447847500729d06 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/upstart/+/5831922 Reviewed-by: Jie Jiang <[email protected]> Tested-by: David Stevens <[email protected]> Commit-Queue: David Stevens <[email protected]> Owners-Override: David Stevens <[email protected]> Auto-Submit: David Stevens <[email protected]> Commit-Queue: Jie Jiang <[email protected]>