netperf: fix patch
authorChris Larson <chris_larson@mentor.com>
Sun, 23 Jan 2011 17:31:03 +0000 (12:31 -0500)
committerChris Larson <chris_larson@mentor.com>
Sun, 23 Jan 2011 17:31:03 +0000 (12:31 -0500)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
recipes/netperf/files/vfork.patch
recipes/netperf/netperf_2.4.4.bb

index adbe8c6..a40c96f 100755 (executable)
@@ -1,6 +1,5 @@
-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
+--- netperf-2.4.4/src/netserver.c      2007-10-17 17:09:12.000000000 -0400
++++ netperf-2.4.4.new/src/netserver.c  2011-01-23 12:26:39.000000000 -0500
 @@ -567,7 +567,11 @@
    fflush (stdin);
    fflush (stdout);
@@ -11,18 +10,17 @@ diff --exclude CVS -uNr netperf-2.4.3/src/netserver.c netperf-2.4.3.modified/src
 +  switch (vfork())
 +#endif
      {
-     case -1:
+     case -1:          
        perror("netperf server error");
-@@ -711,8 +715,11 @@
-               }
+@@ -712,7 +716,11 @@
  #else
        signal(SIGCLD, SIG_IGN);
--
+         
 +#if defined(HAVE_FORK)
-         switch (fork())
+         switch (fork())
 +#else
 +        switch (vfork())
 +#endif
-           {
-           case -1:
-             /* something went wrong */
+           {
+           case -1:
+             /* something went wrong */
index 783cd55..4ffa822 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION="Network performance benchmark including tests for TCP, UDP, sockets
 SECTION = "console/network"
 HOMEPAGE = "http://www.netperf.org/"
 LICENSE = "netperf"
-PR = "r2"
+PR = "r3"
 
 SRC_URI="ftp://ftp.netperf.org/netperf/archive/netperf-${PV}.tar.bz2 \
          file://cpu_set.patch \