]> code.ossystems Code Review - openembedded-core.git/commit
oeqa: modernise subprocess: preexec_fn=os.setsid -> start_new_session=True
authorAndré Draszik <git@andred.net>
Mon, 3 Feb 2020 17:28:12 +0000 (17:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Feb 2020 15:56:24 +0000 (15:56 +0000)
commitc3bd502f31a621394a2f6ea3ae90443ff4ac98a4
tree7e29a17e1a3ffef972895311cd7803ae4d6911e0
parent9cc4dc9cc951157e6e374192c88369432ae5cff1
oeqa: modernise subprocess: preexec_fn=os.setsid -> start_new_session=True

start_new_session was added to python3 subprocess in v3.2 and
is meant to take the place of the common use of preexec_fn to
call os.setsid() in the child - as done here.

Update to use the new equivalent.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/controllers/masterimage.py
meta/lib/oeqa/core/target/ssh.py
meta/lib/oeqa/utils/sshcontrol.py