Skip to content

Commit

Permalink
socat: wait longer than default 0.5sec
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha committed Feb 10, 2025
1 parent 120c44d commit be2cd1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/lib/grml-live/minifai
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def helper_tools(conf_dir: Path, chroot_dir: Path, classes: list[str], dynamic_s
"fcopy",
f"""#!/bin/sh
echo "D: minifai fcopy: $(date +%FT%T) requesting $@"
RC=$(echo fcopy "$@" | socat - UNIX-CONNECT:{tempdir}/sock,forever)
RC=$(echo fcopy "$@" | socat -t3600 - UNIX-CONNECT:{tempdir}/sock,forever)
if [ -z "$RC" ]; then
echo "E: minifai fcopy: $(date +%FT%T) got no reply from server"
exit 119
Expand All @@ -437,7 +437,7 @@ exit 0
"skiptask",
f"""#!/bin/sh
echo "D: minifai skiptask: $(date +%FT%T) requesting $@"
RC=$(echo skiptask "$@" | socat - UNIX-CONNECT:{tempdir}/sock,forever)
RC=$(echo skiptask "$@" | socat -t3600 - UNIX-CONNECT:{tempdir}/sock,forever)
if [ -z "$RC" ]; then
echo "E: minifai skiptask: $(date +%FT%T) got no reply from server"
exit 119
Expand Down

0 comments on commit be2cd1b

Please sign in to comment.