1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-04-20 11:29:54 +00:00

runfvp: reset the process group on startup

So that it is easy to kill runfvp and everything it starts (such as
telnet or the FVP itself), reset the process group on startup.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Ross Burton
2021-10-18 16:40:51 +01:00
committed by Jon Mason
parent fa3c9af4fc
commit a12a605281

View File

@@ -217,6 +217,9 @@ def runfvp(cli_args):
if __name__ == "__main__":
try:
# Set the process group so that it's possible to kill runfvp and
# everything it spawns easily.
os.setpgid(0, 0)
runfvp(sys.argv[1:])
except KeyboardInterrupt:
pass