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:
Martin Stein 2013-11-23 02:38:38 +01:00 committed by Norman Feske
parent 54610247ad
commit fd003f0e00

View File

@ -37,6 +37,6 @@ int main(int, char **)
printf("pid %d: parent i = %d\n", getpid(), i++);
}
for (;;);
pause();
return 0;
}