diff options
author | 2014-05-15 07:56:26 +0000 | |
---|---|---|
committer | 2014-05-15 07:56:26 +0000 | |
commit | 990115aba69ae7cc76345e58ae0d6d3c3f7c1eae (patch) | |
tree | df637a7b1fa53f9820b0e2dd94314443b772e613 | |
parent | Deal with - actually, ignore - route info messages on the listening side. (diff) | |
download | wireguard-openbsd-990115aba69ae7cc76345e58ae0d6d3c3f7c1eae.tar.xz wireguard-openbsd-990115aba69ae7cc76345e58ae0d6d3c3f7c1eae.zip |
Use log_warn() to include errno if write() fails.
From thib
-rw-r--r-- | usr.sbin/relayd/check_tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/check_tcp.c b/usr.sbin/relayd/check_tcp.c index 49f7bb4f58f..2ddc47f3f80 100644 --- a/usr.sbin/relayd/check_tcp.c +++ b/usr.sbin/relayd/check_tcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: check_tcp.c,v 1.42 2011/06/17 14:36:51 jsg Exp $ */ +/* $OpenBSD: check_tcp.c,v 1.43 2014/05/15 07:56:26 reyk Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -211,7 +211,7 @@ tcp_send_req(int s, short event, void *arg) if (bs == -1) { if (errno == EAGAIN || errno == EINTR) goto retry; - log_warnx("%s: cannot send request", __func__); + log_warn("%s: cannot send request", __func__); tcp_close(cte, HOST_DOWN); hce_notify_done(cte->host, HCE_TCP_WRITE_FAIL); return; |