diff options
author | 2015-07-14 20:23:40 +0000 | |
---|---|---|
committer | 2015-07-14 20:23:40 +0000 | |
commit | 041b0fd35e7b53ad0e1859b8bbd35546c7285673 (patch) | |
tree | 6d0d3991377acfb61996a1b7a158c1edc4795e1c /usr.sbin/tcpdump/tcpdump.c | |
parent | use atomic operations on sig_atomic_t variables inside the signal handlers, (diff) | |
download | wireguard-openbsd-041b0fd35e7b53ad0e1859b8bbd35546c7285673.tar.xz wireguard-openbsd-041b0fd35e7b53ad0e1859b8bbd35546c7285673.zip |
Move the BIOCGSTATS ioctl operation done by the tcpdump process
(at ^C time) into a services provided by the privsep monitor.
ok canacar
Diffstat (limited to 'usr.sbin/tcpdump/tcpdump.c')
-rw-r--r-- | usr.sbin/tcpdump/tcpdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c index 0a751a4d36a..f9bcac98f4d 100644 --- a/usr.sbin/tcpdump/tcpdump.c +++ b/usr.sbin/tcpdump/tcpdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcpdump.c,v 1.71 2015/07/12 19:58:00 naddy Exp $ */ +/* $OpenBSD: tcpdump.c,v 1.72 2015/07/14 20:23:40 deraadt Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 @@ -515,7 +515,7 @@ cleanup(int signo) /* Can't print the summary if reading from a savefile */ (void)write(STDERR_FILENO, "\n", 1); if (pd != NULL && pcap_file(pd) == NULL) { - if (pcap_stats(pd, &stat) < 0) { + if (priv_pcap_stats(&stat) < 0) { (void)snprintf(buf, sizeof buf, "pcap_stats: %s\n", pcap_geterr(pd)); write(STDERR_FILENO, buf, strlen(buf)); |