Commit 43faa11358c0b9660aed5322b2c3e74026b04892

Con Kolivas 2011-07-30T13:37:34

Use correct name in syslog.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/main.c b/main.c
index dff939f..28032a4 100644
--- a/main.c
+++ b/main.c
@@ -3876,7 +3876,7 @@ int main (int argc, char *argv[])
 
 #ifdef HAVE_SYSLOG_H
 	if (use_syslog)
-		openlog("cpuminer", LOG_PID, LOG_USER);
+		openlog(PROGRAM_NAME, LOG_PID, LOG_USER);
 #endif
 
 	mining_threads = opt_n_threads + gpu_threads;