diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-01-08 13:35:13 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-01-21 18:00:26 -0500 |
| commit | bbcd5a43000a050501401da0580352bc3868d14b (patch) | |
| tree | 7187c872ff74c0e4febf0a8ed124a6fbbc822070 /recipes-containers | |
| parent | c55674f76684a18eb6ddc714c4e91440600aea1a (diff) | |
| download | meta-virtualization-bbcd5a43000a050501401da0580352bc3868d14b.tar.gz | |
vrunner: fix file descriptor close syntax for coproc
The syntax {SOCAT[0]}<&- is invalid - curly braces are for allocating
new file descriptors, not referencing existing ones. Use eval with
${SOCAT[0]} to properly close the coproc file descriptors.
Fixes: "SOCAT[0]: ambiguous redirect" error when using daemon mode.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers')
| -rwxr-xr-x | recipes-containers/vcontainer/files/vrunner.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-containers/vcontainer/files/vrunner.sh b/recipes-containers/vcontainer/files/vrunner.sh index c9950618..a2f7a216 100755 --- a/recipes-containers/vcontainer/files/vrunner.sh +++ b/recipes-containers/vcontainer/files/vrunner.sh | |||
| @@ -454,7 +454,7 @@ daemon_send() { | |||
| 454 | done | 454 | done |
| 455 | 455 | ||
| 456 | # Clean up - close FDs and kill socat | 456 | # Clean up - close FDs and kill socat |
| 457 | exec {SOCAT[0]}<&- {SOCAT[1]}>&- | 457 | eval "exec ${SOCAT[0]}<&- ${SOCAT[1]}>&-" |
| 458 | kill $SOCAT_PID 2>/dev/null || true | 458 | kill $SOCAT_PID 2>/dev/null || true |
| 459 | wait $SOCAT_PID 2>/dev/null || true | 459 | wait $SOCAT_PID 2>/dev/null || true |
| 460 | 460 | ||
