mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-25 03:49:00 +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 (;;) {
|
||||
int r;
|
||||
|
||||
if ((r = close(fd)) >= 0)
|
||||
r = close(fd);
|
||||
if (r >= 0)
|
||||
return r;
|
||||
|
||||
if (errno != EINTR)
|
||||
return r;
|
||||
return -errno;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user