summaryrefslogtreecommitdiff
path: root/sbin/ping
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2016-09-11 17:55:06 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2016-09-11 17:55:06 +0000
commitdb9469f5f8ffe2bf2f8bdf37415c46d78f2baa92 (patch)
tree0600ee2d35d9548537dd26800787c6da90d8bfab /sbin/ping
parent4b93cbbf4eeedd69535aec5c4076c087b1e2d29f (diff)
pinger() is no longer called in a sighandler since some time, just
printf(3).
Diffstat (limited to 'sbin/ping')
-rw-r--r--sbin/ping/ping.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 4d195e2e390..395a24298a3 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping.c,v 1.163 2016/09/11 17:50:56 florian Exp $ */
+/* $OpenBSD: ping.c,v 1.164 2016/09/11 17:55:05 florian Exp $ */
/* $NetBSD: ping.c,v 1.20 1995/08/11 22:37:58 cgd Exp $ */
/*
@@ -752,9 +752,8 @@ pinger(void)
if (i < 0 || i != cc) {
if (i < 0)
- perror("ping: sendto");
- dprintf(STDOUT_FILENO, "ping: wrote %s %d chars, ret=%d\n",
- hostname, cc, i);
+ warn("sendto");
+ printf("ping: wrote %s %d chars, ret=%d\n", hostname, cc, i);
}
if (!(options & F_QUIET) && options & F_FLOOD)
(void)write(STDOUT_FILENO, &DOT, 1);