mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-15 04:43:01 -04:00
FD_MAX needs to start at 3 to be safe
This commit is contained in:
+1
-1
@@ -256,7 +256,7 @@ run_mods() {
|
||||
write_mod_debug "Mod script version ${MOD_SCRIPT_VER}"
|
||||
mkdir -p /modcache
|
||||
# Fetch internal fds
|
||||
FD_MAX=0
|
||||
FD_MAX=3
|
||||
while IFS= read -r -d '' FD; do
|
||||
if [[ $(cat "${FD}") -gt "${FD_MAX}" ]]; then
|
||||
FD_MAX=$(cat "${FD}")
|
||||
|
||||
Reference in New Issue
Block a user