Browse Source

Util: Do not modify the output result

master
Riyyi 3 years ago
parent
commit
496e3e4c88
  1. 4
      src/util/system.cpp

4
src/util/system.cpp

@ -236,10 +236,6 @@ void System::readFromFileDescriptor(int fileDescriptor[2], std::string& output)
}
} while (errno == EAGAIN || errno == EINTR);
if (!output.empty() && output.find_last_of('\n') == output.size() - 1) {
output.pop_back();
}
close(fileDescriptor[ReadFileDescriptor]);
}

Loading…
Cancel
Save