diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-01-18 12:03:04 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-01-18 17:28:27 -0700 |
commit | e4193a20d7aba7fb5de102f63a588365366cc306 (patch) | |
tree | c5284692c6fc01468927aa4e2e56a9bfd1a33d79 /recipes/netperf/files | |
parent | a2539e0e25b0713d9b64595f3271281109cabc7e (diff) | |
download | openembedded-e4193a20d7aba7fb5de102f63a588365366cc306.tar.gz |
netperf: apply patch to fall back from fork to vfork
Patch courtesy Freescale.
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'recipes/netperf/files')
-rwxr-xr-x | recipes/netperf/files/vfork.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes/netperf/files/vfork.patch b/recipes/netperf/files/vfork.patch new file mode 100755 index 0000000000..adbe8c6f3c --- /dev/null +++ b/recipes/netperf/files/vfork.patch @@ -0,0 +1,28 @@ +diff --exclude CVS -uNr netperf-2.4.3/src/netserver.c netperf-2.4.3.modified/src/netserver.c +--- netperf-2.4.3/src/netserver.c 2007-02-15 18:22:40.000000000 -0700 ++++ netperf-2.4.3.modified/src/netserver.c 2007-12-05 11:42:25.000000000 -0700 +@@ -567,7 +567,11 @@ + fflush (stdin); + fflush (stdout); + fflush (stderr); ++#if defined(HAVE_FORK) + switch (fork()) ++#else ++ switch (vfork()) ++#endif + { + case -1: + perror("netperf server error"); +@@ -711,8 +715,11 @@ + } + #else + signal(SIGCLD, SIG_IGN); +- ++#if defined(HAVE_FORK) + switch (fork()) ++#else ++ switch (vfork()) ++#endif + { + case -1: + /* something went wrong */ |