mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-25 21:25:59 +07:00
util: return errno in close_nointr()
This commit is contained in:
parent
3f49d45a45
commit
48f82119ce
@ -230,11 +230,12 @@ int close_nointr(int fd) {
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
if ((r = close(fd)) >= 0)
|
r = close(fd);
|
||||||
|
if (r >= 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
if (errno != EINTR)
|
if (errno != EINTR)
|
||||||
return r;
|
return -errno;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user