summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-07 07:41:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-07 07:41:22 +0000
commitff790917064771c2be904ce86e3375682af35cc5 (patch)
tree9033cac7796e40347ff3800d9c2bf8fe4298962d /usr.sbin
parent890a46cf615fd6614fc361f17b75161ec1d1e646 (diff)
skip the unsafe bit in the signal handler
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/tcpdump/tcpdump.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c
index 7cc35b12872..7c081bacde8 100644
--- a/usr.sbin/tcpdump/tcpdump.c
+++ b/usr.sbin/tcpdump/tcpdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcpdump.c,v 1.23 2001/11/02 16:19:27 deraadt Exp $ */
+/* $OpenBSD: tcpdump.c,v 1.24 2001/11/07 07:41:21 deraadt Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -26,7 +26,7 @@ static const char copyright[] =
"@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997\n\
The Regents of the University of California. All rights reserved.\n";
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/tcpdump.c,v 1.23 2001/11/02 16:19:27 deraadt Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/tcpdump.c,v 1.24 2001/11/07 07:41:21 deraadt Exp $ (LBL)";
#endif
/*
@@ -389,7 +389,9 @@ cleanup(int signo)
/* Can't print the summary if reading from a savefile */
if (pd != NULL && pcap_file(pd) == NULL) {
+#if 0
(void)fflush(stdout); /* XXX unsafe */
+#endif
(void)write(STDERR_FILENO, "\n", 1);
if (pcap_stats(pd, &stat) < 0) {
(void)snprintf(buf, sizeof buf,