Skip to content
Commit 3f976d59 authored by Pavel Tikhomirov's avatar Pavel Tikhomirov Committed by Pavel Emelyanov
Browse files

ipc/sysctl: c/r fs.mqueue.msg_default fs.mqueue.msgsize_default



we already have 3/5 fs.mqueue.xxx sysctls so why not have all:

/proc/sys/fs/mqueue/msg_default is  a read/write  file for
setting/getting the default number of messages in a queue value
if attr parameter of mq_open(2) is NULL. If it exceed msg_max,
the default value is initialized msg_max.

/proc/sys/fs/mqueue/msgsize_default is a read/write file for
setting/getting the default message size value if attr parameter
of mq_open(2) is NULL. If it exceed msgsize_max, the default
value is initialized msgsize_max.

v2: remove check if kernel has sysctls as we do not support such an
old kernel(v3.5)

Signed-off-by: default avatarPavel Tikhomirov <ptikhomirov@virtuozzo.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 99088d6b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment