Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jonathan-beard/RaftLib
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-beard committed Jun 2, 2016
2 parents 077b814 + 0ec1eff commit f561ea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/affinity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ affinity::set( const std::size_t desired_core )
/**
#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE
**/
strerror_r( errno, buffer, buff_length );
const char *str( strerror_r( errno, buffer, buff_length ) );
std::cerr << "failed to set affinity, desired core( " << desired_core << " )";
std::cerr << " exited with error ( " << buffer << " ).\n";
std::cerr << " exited with error ( " << str << " ).\n";
exit( EXIT_FAILURE );
}
/** wait till we know we're on the right processor **/
Expand Down

0 comments on commit f561ea1

Please sign in to comment.