noux_fork: use pause() instead of endless loop
At least with base-hw, the endless loop at the end of the fork parent slows execution of the fork child dramatically. Using libc function pause() is a cleaner solution anyways. ref #964
This commit is contained in:
committed by
Norman Feske
parent
54610247ad
commit
fd003f0e00
@@ -37,6 +37,6 @@ int main(int, char **)
|
||||
printf("pid %d: parent i = %d\n", getpid(), i++);
|
||||
}
|
||||
|
||||
for (;;);
|
||||
pause();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user