[netperf-dev] netperf2 commit notice r163 - in trunk: . src
raj at netperf.org
raj at netperf.org
Fri Dec 7 16:01:03 PST 2007
Author: raj
Date: 2007-12-07 16:01:02 -0800 (Fri, 07 Dec 2007)
New Revision: 163
Modified:
trunk/AUTHORS
trunk/Release_Notes
trunk/src/netserver.c
Log:
use vfork rather than fork when necessary
Modified: trunk/AUTHORS
===================================================================
--- trunk/AUTHORS 2007-12-05 18:02:15 UTC (rev 162)
+++ trunk/AUTHORS 2007-12-08 00:01:02 UTC (rev 163)
@@ -212,4 +212,7 @@
Fixes to replace struct sockaddr_in with struct sockaddr_storage
Anonymous
-Support for sendfile() on OSX
\ No newline at end of file
+Support for sendfile() on OSX
+
+Matt Waddel
+Fix to use vfork() instead of fork() on platforms without fork()
\ No newline at end of file
Modified: trunk/Release_Notes
===================================================================
--- trunk/Release_Notes 2007-12-05 18:02:15 UTC (rev 162)
+++ trunk/Release_Notes 2007-12-08 00:01:02 UTC (rev 163)
@@ -2,6 +2,9 @@
Things changed in this release:
+*) Use vfork() on those platforms without fork(), courtesy of Matt
+ Waddel
+
*) Track the bouncing interfaces that are linux processor affinity
*) Fixes for Solaris sendfilev usage.
Modified: trunk/src/netserver.c
===================================================================
--- trunk/src/netserver.c 2007-12-05 18:02:15 UTC (rev 162)
+++ trunk/src/netserver.c 2007-12-08 00:01:02 UTC (rev 163)
@@ -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 */
More information about the netperf-dev
mailing list