summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-09-20 09:46:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-09-20 09:46:20 +0000
commit999acc4b42b7733e27fc576968fd4fc9f5f3e84d (patch)
tree0178832c1000900056da640383642656122d3cd4
parentd2d2bbc78704c441b2671fd83f2b9a164ddee7e4 (diff)
rev 1.80 added calls from the signal handler to stdio. bad bad bad!
use system calls directly, instead.
-rw-r--r--sbin/ping/ping.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 604fd1d883e..ecd94569c69 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping.c,v 1.90 2011/09/17 14:10:05 haesbaert Exp $ */
+/* $OpenBSD: ping.c,v 1.91 2011/09/20 09:46:19 deraadt Exp $ */
/* $NetBSD: ping.c,v 1.20 1995/08/11 22:37:58 cgd Exp $ */
/*
@@ -596,7 +596,7 @@ catcher(int signo)
if (ntransmitted - nreceived - 1 > nmissedmax) {
nmissedmax = ntransmitted - nreceived - 1;
if (!(options & F_FLOOD) && (options & F_AUD_MISS))
- (void)fputc('\a', stderr);
+ write(STDERR_FILENO, "\a", 1);
}
errno = save_errno;
}
@@ -901,7 +901,7 @@ pr_pack(char *buf, int cc, struct sockaddr_in *from)
(void)putchar('\n');
(void)fflush(stdout);
if (options & F_AUD_RECV)
- (void)fputc('\a', stderr);
+ write(STDERR_FILENO, "\a", 1);
}
}