diff --git a/common/params.cc b/common/params.cc index d1e5a36462..337be814b7 100644 --- a/common/params.cc +++ b/common/params.cc @@ -140,7 +140,7 @@ int Params::put(const char* key, const char* value, size_t value_size) { } // fsync to force persist the changes. - if ((result = fsync(tmp_fd)) < 0) break; + if ((result = HANDLE_EINTR(fsync(tmp_fd))) < 0) break; FileLock file_lock(params_path + "/.lock");