mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 19:34:56 +00:00
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:
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user