mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #6134 from SimonEbner/main
Retry read operations interrupted by EINTR
This commit is contained in:
commit
2fd290ad47
|
|
@ -1182,7 +1182,10 @@ bool read_until_abc_done(abc_output_filter &filt, int fd, DeferredLogs &logs) {
|
||||||
bool seen_source_cmd = false;
|
bool seen_source_cmd = false;
|
||||||
bool seen_yosys_abc_done = false;
|
bool seen_yosys_abc_done = false;
|
||||||
while (true) {
|
while (true) {
|
||||||
int ret = read(fd, buf, sizeof(buf) - 1);
|
int ret;
|
||||||
|
do {
|
||||||
|
ret = read(fd, buf, sizeof(buf) - 1);
|
||||||
|
} while (ret == -1 && errno == EINTR);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
logs.log_error("Failed to read from ABC, errno=%d\n", errno);
|
logs.log_error("Failed to read from ABC, errno=%d\n", errno);
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue