tools/guard.sh: keep the command's stdin (a backgrounded job got /dev/null, silently emptying stdin-fed lucisv runs)
Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
7c4bdbcfea
commit
8c61570a04
1 file changed
+4
-1
+4
-1
@@ -29,7 +29,10 @@ while [ $# -gt 0 ]; do
|
||||
done
|
||||
[ $# -gt 0 ] || { echo "guard.sh: no command" >&2; exit 2; }
|
||||
|
||||
"$@" &
|
||||
# Keep the command's stdin: a plain `cmd &` in a non-interactive shell
|
||||
# gives the job /dev/null, which silently empties any stdin-fed `lucisv`.
|
||||
exec 3<&0
|
||||
"$@" <&3 &
|
||||
root=$!
|
||||
start=$(date +%s)
|
||||
|
||||
|
||||
Reference in new issue
Block a user