Wait for complete input provided by `seq`
PATCH 1/1 Wait for complete input provided by `seq`
From: mloviska <[email protected]>
splice02 may exit before seq therefore broken pipe occurs.
Found with SLES JeOS (https://progress.opensuse.org/issues/77260).
Suggested-by Fabian Vogt <[email protected]>
Tested-by Petr Vorel <[email protected]>
Reviewed-by Petr Vorel <[email protected]>
Signed-off-by Martin Loviska <[email protected]>
--- runtest/smoketest | 2 +- runtest/syscalls | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
runtest/smoketest +1 -1
@@ -11,5 +11,5 @@ symlink01 symlink01 stat04 symlink01 -T stat04 utime01A symlink01 -T utime01 rename01A symlink01 -T rename01 -splice02 seq 1 20 | splice02 +splice02 (seq 1 20 || :) | splice02 route4-change-dst route-change-dst.sh
runtest/syscalls +1 -1
@@ -1446,7 +1446,7 @@ socketpair02 socketpair02 sockioctl01 sockioctl01 splice01 splice01 -splice02 seq 1 20000 | splice02 +splice02 (seq 1 20000 || :) | splice02 splice03 splice03 splice04 splice04 splice05 splice05
Signature · 1 line
2.30.1
PATCH 1/1 Wait for complete input provided by `seq`
Hi,
I'd accept this quick fix although Cyril suggested in original PR [1] that proper solution would be to generate it's input without relying on shell piping data into it.
Kind regards,
Petr
[1] https://github.com/linux-test-project/ltp/pull/796#issuecomment-789710935