In Linux/POSIX/UNIX programs, errors are reported by the operating system and C library with the errno variable. What's the portable and thread-safe way to deal with them in C++? If you are like me, and know Linux better than C++, the answer might not be obvious. But it is simple: throw an std::system_error exception of … Continue reading Handling errno in multi-threaded C++ code