]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa/ssh: Further improve process exit handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 29 Jul 2023 08:00:49 +0000 (09:00 +0100)
committerSteve Sakoman <steve@sakoman.com>
Tue, 22 Aug 2023 17:07:13 +0000 (07:07 -1000)
commite1e038ab01a599fcdd4aa6211b6d15cd01a5e2e3
tree8cc3e8f41b5ef2440504677efb9b6a3cec996655
parentc70b05ea667e7bd280470b0b6ca10efb0f648e0f
oeqa/ssh: Further improve process exit handling

It looks like there were further cases where orphaned processes may be left
behind since the .kill() calls may be unsuccessful if the process terminated
due to the terminate or through normal exit. In that situation .wait()
wouldn't have been called.

Further tweak the exit code paths to ensure .wait() is called to update the
returncode value before returning in all cases.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0a0a1731e38edfa72a141e8fd8f2de52be562e94)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/core/target/ssh.py