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 authored and Jon Mason committed 2021-10-20 14:07:11 -04:00
1 parent 491cac17fe
commit 0a64644bc9
1 file changed
+3
+3
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