hid: bump the FD limit
This commit is contained in:
parent
9c31fb69df
commit
1238233556
@ -3493,6 +3493,14 @@ func main() {
|
||||
os.Exit(2)
|
||||
}
|
||||
|
||||
// Note that this has become unnecessary since Go 1.19.
|
||||
var limit syscall.Rlimit
|
||||
if err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &limit); err == nil &&
|
||||
limit.Cur != limit.Max {
|
||||
limit.Cur = limit.Max
|
||||
syscall.Setrlimit(syscall.RLIMIT_NOFILE, &limit)
|
||||
}
|
||||
|
||||
config = make(simpleConfig)
|
||||
config.loadDefaults(configTable)
|
||||
if err := config.updateFromFile(); err != nil && !os.IsNotExist(err) {
|
||||
|
Loading…
Reference in New Issue
Block a user