From: JINMEI Tatuya Date: Thu, 8 Nov 2012 07:40:37 +0000 (-0800) Subject: [2447] show the reason of the error when opening IPC lock file fails. X-Git-Tag: trac2487_base~1^2~31^2~1^2^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec63a9a5baf587354f220b5a3a306dbb36fc7fb6;p=thirdparty%2Fkea.git [2447] show the reason of the error when opening IPC lock file fails. --- diff --git a/src/lib/util/interprocess_sync_file.cc b/src/lib/util/interprocess_sync_file.cc index d045449025..25af55cb37 100644 --- a/src/lib/util/interprocess_sync_file.cc +++ b/src/lib/util/interprocess_sync_file.cc @@ -15,6 +15,8 @@ #include "interprocess_sync_file.h" #include +#include +#include #include #include @@ -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); } }