[netperf-dev] netperf2 commit notice r452 - trunk/src
raj at netperf.org
raj at netperf.org
Wed Jul 27 11:32:33 PDT 2011
Author: raj
Date: 2011-07-27 11:32:33 -0700 (Wed, 27 Jul 2011)
New Revision: 452
Modified:
trunk/src/netserver.c
Log:
left
Modified: trunk/src/netserver.c
===================================================================
--- trunk/src/netserver.c 2011-07-27 18:30:13 UTC (rev 451)
+++ trunk/src/netserver.c 2011-07-27 18:32:33 UTC (rev 452)
@@ -629,7 +629,7 @@
set_fdset(struct listen_elt *list, fd_set *fdset) {
struct listen_elt *temp;
- int max = -1;
+ SOCKET max = INVALID_SOCKET;
FD_ZERO(fdset);
@@ -967,6 +967,8 @@
void
spawn_child() {
+#if defined(HAVE_FORK)
+
if (debug) {
fprintf(where,
"%s: enter\n",
@@ -974,7 +976,6 @@
fflush(where);
}
-#if defined(HAVE_FORK)
/* flush the usual suspects */
fflush(stdin);
@@ -1033,6 +1034,14 @@
PROCESS_INFORMATION pi;
STARTUPINFO si;
int i;
+
+ if (debug) {
+ fprintf(where,
+ "%s: enter\n",
+ __FUNCTION__);
+ fflush(where);
+ }
+
/* create the cmdline array based on strlen(program) + 80 chars */
cmdline_length = strlen(program) + 80;
More information about the netperf-dev
mailing list