VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Vegard Nossum <vegard.nossum@oracle.com> 2015-12-18 21:28:53 +0100 committer: Richard Weinberger <richard@nod.at> 2016-01-10 21:49:47 +0100 commit: 0754fb298f2f2719f0393491d010d46cfb25d043 parent: 9f2dfda2f2f1c6181c3732c16b85c59ab2d195e0
Commit Summary:
uml: flush stdout before forking
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c
index 47f1ff056a54..22a358ef1b0c 100644
--- a/arch/um/os-Linux/start_up.c
+++ b/arch/um/os-Linux/start_up.c
@@ -94,6 +94,8 @@ static int start_ptraced_child(void)
 {
 	int pid, n, status;
 
+	fflush(stdout);
+
 	pid = fork();
 	if (pid == 0)
 		ptrace_child();