From fd003f0e00807987c2037def0c3d982ed8202e5f Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Sat, 23 Nov 2013 02:38:38 +0100 Subject: [PATCH] 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 --- ports/src/test/noux_fork/test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/src/test/noux_fork/test.cc b/ports/src/test/noux_fork/test.cc index 54bd2f3008..73f6f6b796 100644 --- a/ports/src/test/noux_fork/test.cc +++ b/ports/src/test/noux_fork/test.cc @@ -37,6 +37,6 @@ int main(int, char **) printf("pid %d: parent i = %d\n", getpid(), i++); } - for (;;); + pause(); return 0; }