Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c45ba3e8 authored by Yifan Hong's avatar Yifan Hong Committed by android-build-merger
Browse files

Merge changes from topic "lpdumpd" am: f959fffc am: ee7da7c7

am: 53c3f30d

Change-Id: I48c0b2b59c48bdaf3c4fed8a03525f1fd2a9cf98
parents b3e0c1bd 53c3f30d
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -385,7 +385,12 @@ bool Readlink(const std::string& path, std::string* result) {
bool Realpath(const std::string& path, std::string* result) {
  result->clear();

  char* realpath_buf = realpath(path.c_str(), nullptr);
  // realpath may exit with EINTR. Retry if so.
  char* realpath_buf = nullptr;
  do {
    realpath_buf = realpath(path.c_str(), nullptr);
  } while (realpath_buf == nullptr && errno == EINTR);

  if (realpath_buf == nullptr) {
    return false;
  }