mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #11809 from Security-Onion-Solutions/jertel/srtmp
improve timing of responses
This commit is contained in:
@@ -37,12 +37,14 @@ function poll() {
|
|||||||
|
|
||||||
function respond() {
|
function respond() {
|
||||||
file="$QUEUE_DIR/$1.response"
|
file="$QUEUE_DIR/$1.response"
|
||||||
|
tmpfile="${file}.tmp"
|
||||||
response=$2
|
response=$2
|
||||||
|
|
||||||
touch "$file"
|
touch "$tmpfile"
|
||||||
chmod 660 "$file"
|
chmod 660 "$tmpfile"
|
||||||
chown "$QUEUE_OWNER:$QUEUE_GROUP" "$file"
|
chown "$QUEUE_OWNER:$QUEUE_GROUP" "$tmpfile"
|
||||||
echo "$response" > "$file"
|
echo "$response" > "$tmpfile"
|
||||||
|
mv $tmpfile $file
|
||||||
}
|
}
|
||||||
|
|
||||||
function list_minions() {
|
function list_minions() {
|
||||||
|
|||||||
Reference in New Issue
Block a user