Change-Id: Iaa76eb63cbc6f2e47da7eca11944420035ec9b20
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
while (1) {
descriptor = ::creat(path.c_str(), mode);
if (descriptor == -1) {
- if (errno != EINTR) {
+ if (errno == EINTR) {
continue;
}
throw runtime::Exception(runtime::GetSystemErrorMessage());
while (1) {
descriptor = ::open(path.c_str(), flags);
if (descriptor == -1) {
- if (errno != EINTR) {
+ if (errno == EINTR) {
continue;
}
throw runtime::Exception(runtime::GetSystemErrorMessage());