NetBSD/usr.bin/netstat
dholland 950f040fa2 Fix "sidewaysintpr", the thing that prints interface statistics in a
loop, to use signals properly. There are two copies of this code; one
uses kvm and the other uses sysctls. One copy had been updated to use
sigset_t and sigsuspend; the other was using vintage sigpause(). Sync
up the code so both use sigpause. Also, use sig_atomic_t, and block
SIGALRM when not waiting for it to avoid a small and unlikely but real
race.

Since the non-modernized copy of the code *had* for some been
modernized to use setitimer instead of just alarm(), propagate that
change to the other copy.

These copies could share more logic than they do.
2016-11-24 00:05:13 +00:00
..
atalk.c
bpf.c
fast_ipsec.c
if.c
inet6.c
inet.c
main.c
Makefile
mbuf.c
mroute6.c
mroute.c
netstat_hostops.c
netstat_rumpops.c
netstat.1
netstat.h
pfkey.c
pfsync.c
prog_ops.h
route.c
unix.c
vtw.c
vtw.h