break;
case 0x903:
nsjconf->nice_level = (int)strtol(optarg, NULL, 0);
- if ((nsjconf->nice_level < -20) || (nsjconf->nice_level > -20)) {
- LOG_W("Incorrect niceness setting!");
- nsjconf->nice_level = 19;
- }
break;
default:
cmdlineUsage(argv[0]);
PLOG_E("personality(%lx)", nsjconf->personality);
return false;
}
+ LOG_D("setpriority(%d)", nsjconf->nice_level);
errno = 0;
if (setpriority(PRIO_PROCESS, 0, nsjconf->nice_level) == -1 && errno != 0) {
- PLOG_W("setpriority(%" PRId32 ")", nsjconf->nice_level);
+ PLOG_W("setpriority(%d)", nsjconf->nice_level);
}
if (!nsjconf->skip_setsid) {
setsid();