Add command to kill all children processes spawned by cmdthread

Additionally, a maximum send queue length was added to avoid something like `cat /dev/urandom` from being a massive memory hog and causing OOM.

Because output is read from the process and added to the message queue in real time, this could lead to infinite memory usage without it.
This commit is contained in:
Jordyn 2026-03-14 22:03:03 -05:00
commit ac6560e680
2 changed files with 25 additions and 3 deletions

View file

@ -15,5 +15,9 @@ server = {
bot = {
"command_prefix": "$!",
"bot_prefix": "$$",
"opper_nicknames": ["nicknamehere"]
"opper_nicknames": ["nicknamehere"],
# 512 messages * 512 bytes maximum per message = 262144 bytes max message queue size
# Adjust for RAM needs to avoid cat /dev/urandom from causing OOM
"message_queue_max_size": 512
}