do not open debug file unless needed
This commit is contained in:
parent
8b777117a9
commit
c8facac50e
16
benchmarks/netperf/patches/patch-netserver_c
Normal file
16
benchmarks/netperf/patches/patch-netserver_c
Normal file
@ -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];
|
Loading…
Reference in New Issue
Block a user