]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow kern.ipc.maxsockets to be set to current value without error
authorAllan Jude <allanjude@FreeBSD.org>
Thu, 4 Nov 2021 12:55:33 +0000 (12:55 +0000)
committerAllan Jude <allanjude@FreeBSD.org>
Thu, 4 Nov 2021 12:56:09 +0000 (12:56 +0000)
commitc441592a0e1591591665cd037a8a5e9b54675f99
treec658ff90e9ffd615e634e7c10301aad95c2867d7
parent9c0287e0920ad7a16c75e62e914cd69c439dba1c
Allow kern.ipc.maxsockets to be set to current value without error

Normally setting kern.ipc.maxsockets returns EINVAL if the new value
is not greater than the previous value. This can cause spurious
error messages when sysctl.conf is processed multiple times, or when
automation systems try to ensure the sysctl is set to the correct
value. If the value is unchanged, then just do nothing.

PR: 243532
Reviewed by: markj
MFC after: 3 days
Sponsored by: Modirum MDPay
Sponsored by: Klara Inc.
Differential Revision: https://reviews.freebsd.org/D32775
sys/kern/uipc_socket.c