提交 25012721 编写于 作者: R Richard Weinberger

um: Run UML in it's own session.

If UML is not run by a shell it can happen that UML
will kill unrelated proceses upon a fatal exit because
it issues a kill(0, ...).
To prevent such oddities we create a new session in main().
Reported-and-tested-by: NRichard W.M. Jones <rjones@redhat.com>
Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 91d44ff8
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册