diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-02-13 15:01:43 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-02-13 15:01:43 +0000 |
commit | 754ca35cbbfa18de264036af1591b2e57ffbe7df (patch) | |
tree | 436a41d817f8a8cf5177dcaba41e6f3a0a23ebc1 /sbin/dhclient | |
parent | f71b40551bac2215edc94dc33c5d5731e9e26f19 (diff) |
Try harder to start a new line when link is obtained and a new
message is about to be displayed on the console.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/dhclient.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 6eb540c1e14..e4abdb23a89 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.623 2019/02/12 16:50:44 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.624 2019/02/13 15:01:42 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -264,6 +264,7 @@ interface_state(struct interface_info *ifi) newlinkup = LINK_STATE_IS_UP(ifi->link_state); if (newlinkup != oldlinkup) { + tick_msg("", 0, INT64_MAX); log_debug("%s: link %s -> %s", log_procname, (oldlinkup != 0) ? "up" : "down", (newlinkup != 0) ? "up" : "down"); @@ -1010,6 +1011,7 @@ newlease: ifi->offer_src = NULL; if (msg != NULL) { + tick_msg("", 0, INT64_MAX); if ((cmd_opts & OPT_FOREGROUND) != 0) { /* log msg on console only. */ ; |