Initialize the log subsytem in the SE like it is done in the RDE. Without
authorclaudio <claudio@openbsd.org>
Mon, 25 Jul 2016 14:29:28 +0000 (14:29 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 25 Jul 2016 14:29:28 +0000 (14:29 +0000)
this all logging is going via stderr to /dev/null which is not helpful.
OK deraadt@ phessler@

usr.sbin/bgpd/session.c

index e5b0856..e70c9db 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: session.c,v 1.350 2016/07/21 10:13:58 claudio Exp $ */
+/*     $OpenBSD: session.c,v 1.351 2016/07/25 14:29:28 claudio Exp $ */
 
 /*
  * Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -202,6 +202,9 @@ session_main(int debug, int verbose)
        void                    *newp;
        short                    events;
 
+       log_init(debug);
+       log_verbose(verbose);
+
        if ((pw = getpwnam(BGPD_USER)) == NULL)
                fatal(NULL);