Merge pull request #46 from ebadi/master

rlimit64 to getrlimit64
This commit is contained in:
robertswiecki 2017-09-29 14:29:24 +02:00 committed by GitHub
commit 2d72736aca

View File

@ -258,7 +258,7 @@ void cmdlineLogParams(struct nsjconf_t *nsjconf)
__rlim64_t cmdlineParseRLimit(int res, const char *optarg, unsigned long mul)
{
struct rlimit64 cur;
if (prlimit64(0, res, NULL, &cur) == -1) {
if (getrlimit64(res, &cur) == -1) {
PLOG_F("getrlimit(%d)", res);
}
if (strcasecmp(optarg, "max") == 0) {