We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db113ff commit e06ccd7Copy full SHA for e06ccd7
1 file changed
vminitd/Sources/vminitd/InitCommand.swift
@@ -172,11 +172,8 @@ struct InitCommand {
172
173
private static func adjustLimits() throws {
174
var limits = rlimit()
175
- guard getrlimit(RLIMIT_NOFILE, &limits) == 0 else {
176
- throw POSIXError(.init(rawValue: errno)!)
177
- }
178
- limits.rlim_cur = 65536
179
- limits.rlim_max = 65536
+ limits.rlim_cur = RLIM_INFINITY
+ limits.rlim_max = RLIM_INFINITY
180
guard setrlimit(RLIMIT_NOFILE, &limits) == 0 else {
181
throw POSIXError(.init(rawValue: errno)!)
182
}
0 commit comments