提交 91f707d1 编写于 作者: Y YuQing

log more info when setrlimit fail

上级 e9822aa8
......@@ -1457,10 +1457,11 @@ int set_rlimit(int resource, const rlim_t value)
break;
}
logError("file: "__FILE__", line: %d, " \
"call setrlimit fail, resource=%d (%s), value=%"PRId64", " \
"errno: %d, error info: %s", \
__LINE__, resource, label, (int64_t)value, \
logError("file: "__FILE__", line: %d, "
"call setrlimit fail, resource=%d (%s), "
"old value=%"PRId64", new value=%"PRId64", "
"errno: %d, error info: %s", __LINE__, resource, label,
(int64_t)limit.rlim_cur, (int64_t)value,
errno, STRERROR(errno));
return errno != 0 ? errno : EPERM;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册