Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/blacklist/bin use openlog explicitly.



details:   https://anonhg.NetBSD.org/src/rev/c1c99f609f09
branches:  trunk
changeset: 335754:c1c99f609f09
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 22 23:20:28 2015 +0000

description:
use openlog explicitly.

diffstat:

 external/bsd/blacklist/bin/blacklistd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 9ee04317f39a -r c1c99f609f09 external/bsd/blacklist/bin/blacklistd.c
--- a/external/bsd/blacklist/bin/blacklistd.c   Thu Jan 22 21:42:06 2015 +0000
+++ b/external/bsd/blacklist/bin/blacklistd.c   Thu Jan 22 23:20:28 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: blacklistd.c,v 1.23 2015/01/22 21:32:30 christos Exp $ */
+/*     $NetBSD: blacklistd.c,v 1.24 2015/01/22 23:20:28 christos Exp $ */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "config.h"
 #endif
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: blacklistd.c,v 1.23 2015/01/22 21:32:30 christos Exp $");
+__RCSID("$NetBSD: blacklistd.c,v 1.24 2015/01/22 23:20:28 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -316,6 +316,7 @@
        signal(SIGUSR1, sigusr1);
        signal(SIGUSR2, sigusr2);
 
+       openlog(getprogname(), LOG_PID, LOG_DAEMON);
 
        if (debug) {
                lfun = dlog;



Home | Main Index | Thread Index | Old Index