mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
selftests/vsock: skip vng setsid workaround on >= 1.41
virtme-ng 1.41 ships the upstream fix for the SIGTTOU hang (https://github.com/arighi/virtme-ng/pull/453), so the setsid wrapper in vng_dry_run() is no longer needed there. Gate the workaround on the vng version: setsid is used for vng < 1.41, and vng is invoked directly on >= 1.41. Signed-off-by: Bobby Eshleman <bobbyeshleman@meta.com> Link: https://patch.msgid.link/20260612-vsock-test-update-v1-2-7d7eeed3ac8f@meta.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
197503d5ac
commit
9361bff6bd
|
|
@ -445,8 +445,14 @@ vng_dry_run() {
|
|||
# stopped with SIGTTOU and hangs until kselftest's timer expires.
|
||||
# setsid works around this by launching vng in a new session that has
|
||||
# no controlling terminal, so tcsetattr() succeeds.
|
||||
#
|
||||
# Fixed in 1.41 (https://github.com/arighi/virtme-ng/pull/453).
|
||||
|
||||
setsid -w vng --run "$@" --dry-run &>/dev/null
|
||||
if version_lt "$(vng --version | awk '{print $2}')" "1.41"; then
|
||||
setsid -w vng --run "$@" --dry-run &>/dev/null
|
||||
else
|
||||
vng --run "$@" --dry-run &>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
vm_start() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user