• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

UltraMonkey-L7 V3(multi-thread implementation)


Commit MetaInfo

修订版78cb6e9eecafecc60437394b5f36161822091fa2 (tree)
时间2013-06-24 16:00:27
作者Hiroaki Nakano <nakano.hiroaki@nttc...>
CommiterHiroaki Nakano

Log Message

RHEL6.1上コンパイルエラー対処

#30993 の対処をいれると、RHEL6.1上では返り値が使われていない
というエラーが出るため、対処。

Signed-off-by: Hiroaki Nakano <nakano.hiroaki@nttcom.co.jp>

更改概述

差异

--- a/l7vsd/src/l7vsadm.cpp
+++ b/l7vsd/src/l7vsadm.cpp
@@ -2993,13 +2993,14 @@ bool l7vs::l7vsadm::execute(int argc, char *argv[])
29932993 set_parameter();
29942994
29952995 // Get l7vsadm execute file path from /proc/(pid)/exe (symbolic link)
2996+ ssize_t ret;
29962997 char l7vsadm_file_path[256];
29972998 memset(l7vsadm_file_path, 0, sizeof(l7vsadm_file_path));
2998- readlink("/proc/self/exe", l7vsadm_file_path, sizeof(l7vsadm_file_path));
2999+ ret = readlink("/proc/self/exe", l7vsadm_file_path, sizeof(l7vsadm_file_path));
29993000
30003001 // L7vsadm command conflict check. (Try l7vsadm execute file lock)
30013002 file_lock lock(l7vsadm_file_path, l7vsadm_err);
3002- if (l7vsadm_err) {
3003+ if (l7vsadm_err || ret == -1) {
30033004 std::cerr << "COMMON ERROR: " << l7vsadm_err.get_message() << std::endl;
30043005 Logger::putLogError(LOG_CAT_L7VSADM_COMMON, 2, l7vsadm_err.get_message(), __FILE__, __LINE__);
30053006 return false;