diff options
author | 2019-02-13 15:01:42 +0000 | |
---|---|---|
committer | 2019-02-13 15:01:42 +0000 | |
commit | 2decc60e53513f27944c00058f33a7496194c881 (patch) | |
tree | 68e8432fd41310238c0a66b9c1d7e4fe3c7730da | |
parent | New futex(2) based rwlock implementation based on the mutex code. (diff) | |
download | wireguard-openbsd-2decc60e53513f27944c00058f33a7496194c881.tar.xz wireguard-openbsd-2decc60e53513f27944c00058f33a7496194c881.zip |
Try harder to start a new line when link is obtained and a new
message is about to be displayed on the console.
-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. */ ; |