Commit ec63a9a5 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2447] show the reason of the error when opening IPC lock file fails.

parent 86ed7ae9
......@@ -15,6 +15,8 @@
#include "interprocess_sync_file.h"
#include <string>
#include <cerrno>
#include <cstring>
#include <stdlib.h>
#include <string.h>
......@@ -68,8 +70,8 @@ InterprocessSyncFile::do_lock(int cmd, short l_type) {
if (fd_ == -1) {
isc_throw(InterprocessSyncFileError,
"Unable to use interprocess sync lockfile: " +
lockfile_path);
"Unable to use interprocess sync lockfile ("
<< std::strerror(errno) << "): " << lockfile_path);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment