Skip to content

Commit

Permalink
iox-eclipse-iceoryx#808 fix sefault in FileLock
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias Kraus <[email protected]>
  • Loading branch information
elBoberido committed May 21, 2021
1 parent a5ad11f commit f77cc51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iceoryx_utils/source/posix_wrapper/file_lock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ cxx::expected<FileLockError> FileLock::initializeFileLock() noexcept
std::cerr << "Unable to close file lock in error related cleanup during initialization." << std::endl;
});
// possible errors in closeFileDescriptor() are masked and we inform the user about the actual error
return cxx::error<FileLockError>(convertErrnoToFileLockError(openCall.getErrNum()));
return cxx::error<FileLockError>(convertErrnoToFileLockError(lockCall.getErrNum()));
}
else if (lockCall.getErrNum() == EWOULDBLOCK)
{
Expand Down

0 comments on commit f77cc51

Please sign in to comment.