diff options
Diffstat (limited to 'usr.sbin/iscsid/iscsid.c')
-rw-r--r-- | usr.sbin/iscsid/iscsid.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/iscsid/iscsid.c b/usr.sbin/iscsid/iscsid.c index ae8bb8b8525..c100ef3dc5a 100644 --- a/usr.sbin/iscsid/iscsid.c +++ b/usr.sbin/iscsid/iscsid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iscsid.c,v 1.19 2016/08/16 18:41:57 tedu Exp $ */ +/* $OpenBSD: iscsid.c,v 1.20 2017/01/23 08:40:07 benno Exp $ */ /* * Copyright (c) 2009 Claudio Jeker <claudio@openbsd.org> @@ -71,6 +71,8 @@ main(int argc, char *argv[]) int name[] = { CTL_KERN, KERN_PROC_NOBROADCASTKILL, 0 }; int ch, debug = 0, verbose = 0, nobkill = 1; + log_procname = getprogname(); + log_init(1); /* log to stderr until daemonized */ log_verbose(1); |