Jenner\SimpleFork\Queue\SystemVMessageQueue::setMaxQueueSize PHP Method

setMaxQueueSize() public method

update the max size of queue need root
public setMaxQueueSize ( $size ) : boolean
$size
return boolean
    public function setMaxQueueSize($size)
    {
        $user = \get_current_user();
        if ($user !== 'root') {
            throw new \Exception('changing msg_qbytes needs root privileges');
        }
        return $this->setStatus('msg_qbytes', $size);
    }