• Pavel Tikhomirov's avatar
    ipc/sysctl: c/r fs.mqueue.msg_default fs.mqueue.msgsize_default · 3f976d59
    Pavel Tikhomirov authored
    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: 's avatarPavel Tikhomirov <ptikhomirov@virtuozzo.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    3f976d59
ipc-var.proto 586 Bytes