Historic archive of defunct list bismark-commits@lists.bufferbloat.net
 help / color / mirror / Atom feed
From: walter@svn.comics.unina.it
To: bismark-commits@lists.bufferbloat.net
Subject: [Bismark-commits] rev 361 - trunk/mserver/scripts trunk/mserver/src/patches
Date: Fri, 14 Oct 2011 12:34:24 +0200	[thread overview]
Message-ID: <E1REf5s-0008I1-JN@svn.comics.unina.it> (raw)

Author: walter
Date: 2011-10-14 12:34:24 +0200 (Fri, 14 Oct 2011)
New Revision: 361

Added:
   trunk/mserver/src/patches/netperf-r432.patch
Modified:
   trunk/mserver/scripts/setup_common
Log:
added netperf debug logs suppression patch

Modified: trunk/mserver/scripts/setup_common
===================================================================
--- trunk/mserver/scripts/setup_common	2011-10-14 09:00:14 UTC (rev 360)
+++ trunk/mserver/scripts/setup_common	2011-10-14 10:34:24 UTC (rev 361)
@@ -14,6 +14,7 @@
 
 # Apply patches
 ( cd ~/src/$DITG_PKG ; patch -p1 < ~/src/patches/$DITG_PKG.patch )
+( cd ~/src/netperf ; patch -p1 < ~/src/patches/netperf-$NETPERF_REV.patch )
 
 # Build binaries
 ( cd ~/src/netperf; ./configure; make; cp -v src/netserver ~/bin )

Added: trunk/mserver/src/patches/netperf-r432.patch
===================================================================
--- trunk/mserver/src/patches/netperf-r432.patch	                        (rev 0)
+++ trunk/mserver/src/patches/netperf-r432.patch	2011-10-14 10:34:24 UTC (rev 361)
@@ -0,0 +1,49 @@
+Index: src/netserver.c
+===================================================================
+--- src/netserver.c	(revision 432)
++++ src/netserver.c	(working copy)
+@@ -644,7 +644,7 @@
+       
+     case DEBUG_ON:
+       netperf_response.content.response_type = DEBUG_OK;
+-      debug++;
++      //debug++;
+ 
+       if (debug == 1) {
+ 	/* we just flipped-on debugging, dump the request because
+@@ -659,7 +659,7 @@
+       
+     case DEBUG_OFF:
+       if (debug)
+-	debug--;
++	//debug--;
+       netperf_response.content.response_type = DEBUG_OK;
+       send_response();
+       /* we used to take the trouble to close the debug file, but SAF
+@@ -932,7 +932,7 @@
+        worry about the standard file descriptors. raj 2011-07-11 */
+ 
+     close_listens(listen_list);
+-    open_debug_file();
++    //open_debug_file();
+ 
+     child = 1;
+     netperf_daemon = 0;
+@@ -1283,7 +1283,7 @@
+     /* we are the child. we should get a new "where" to match our new
+        pid */
+ 
+-    open_debug_file();
++    //open_debug_file();
+ 
+ #ifdef HAVE_SETSID
+       setsid();
+@@ -1415,7 +1415,7 @@
+        be called before open_debug_file() or there is a chance that
+        we'll toast the descriptor when we do not wish it. */
+     set_server_sock();
+-    open_debug_file();
++    //open_debug_file();
+     process_requests();
+   }
+   else if (daemon_parent) {


                 reply	other threads:[~2011-10-14 10:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1REf5s-0008I1-JN@svn.comics.unina.it \
    --to=walter@svn.comics.unina.it \
    --cc=bismark-commits@lists.bufferbloat.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox