VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Richard Weinberger <richard@nod.at> 2013-08-18 13:30:09 +0200 committer: Richard Weinberger <richard@nod.at> 2013-09-07 10:57:07 +0200 commit: 250127216dd6635f5730752d7444bdec992aecb0 parent: 91d44ff860a9e9c0db81a89cbc24fa31fbd8e6d3
Commit Summary:
um: Run UML in it's own session.
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c
index 749c96da7b99..e1704ff600ff 100644
--- a/arch/um/os-Linux/main.c
+++ b/arch/um/os-Linux/main.c
@@ -123,6 +123,8 @@ int __init main(int argc, char **argv, char **envp)
 
 	setup_env_path();
 
+	setsid();
+
 	new_argv = malloc((argc + 1) * sizeof(char *));
 	if (new_argv == NULL) {
 		perror("Mallocing argv");