From c8facac50e603093f392f64062b3f82f051b4107 Mon Sep 17 00:00:00 2001 From: jakob Date: Fri, 23 Jul 2004 18:30:28 +0000 Subject: [PATCH] do not open debug file unless needed --- benchmarks/netperf/patches/patch-netserver_c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 benchmarks/netperf/patches/patch-netserver_c diff --git a/benchmarks/netperf/patches/patch-netserver_c b/benchmarks/netperf/patches/patch-netserver_c new file mode 100644 index 00000000000..b0fec1fbab8 --- /dev/null +++ b/benchmarks/netperf/patches/patch-netserver_c @@ -0,0 +1,16 @@ +$OpenBSD: patch-netserver_c,v 1.1 2004/07/23 18:30:28 jakob Exp $ +--- netserver.c.orig Fri Jul 23 20:23:01 2004 ++++ netserver.c Fri Jul 23 20:24:52 2004 +@@ -730,10 +730,12 @@ struct sockaddr name; + + /* unlink(DEBUG_LOG_FILE); */ + #ifndef WIN32 ++if (debug) { + if ((where = fopen(DEBUG_LOG_FILE, "w")) == NULL) { + perror("netserver: debug file"); + exit(1); + } ++} + #else + { + char FileName[MAX_PATH];