.TP
\fBrlimit-addrspace\fR = \fIresource-limits\fR
Specifies the maximum size of the address space of the process. See the \fBRESOURCE LIMITS\fR
-section.
+section. Note that some operating systems (notably OpenBSD) do not support this limit; the
+setting will be ignored on such systems.
.\"
.SS OPTIONS
.\"
parse_rlimit(line, name, "rlimit-data", nofile_limits);
}
else if (setting == "rlimit-addrspace") {
- string nofile_setting = read_setting_value(i, end, nullptr);
- service_rlimits &nofile_limits = find_rlimits(rlimits, RLIMIT_AS);
- parse_rlimit(line, name, "rlimit-addrspace", nofile_limits);
+ #if defined(RLIMIT_AS)
+ string nofile_setting = read_setting_value(i, end, nullptr);
+ service_rlimits &nofile_limits = find_rlimits(rlimits, RLIMIT_AS);
+ parse_rlimit(line, name, "rlimit-addrspace", nofile_limits);
+ #endif
}
else {
throw service_description_exc(name, "Unknown setting: " + setting);