freebsd-skq/usr.bin/systat
Michael Reifenberger dcc2fb3707 systat: Avoid incorrect reallocation in pigs.c
Stop free() even if kvm_getprocs as we can come back but set nprocs = 0.
Check nprocs in showpigs() to ensure not try displaying with kvm_getprocs failed.
Current code can have pt with non-null after kvm_getprocs() failure.

Replace to realloc for simpler operations.

Submitted by:	Yoshihiro Ota ota@j.email.ne.jp
Reviewed by:	mckusick@
Differential Revision:	https://reviews.freebsd.org/D29303
2021-04-21 20:09:21 +02:00
..
cmds.c
cmdtab.c
convtbl.c
convtbl.h
devs.c systat -zarc to display disk activities like -vm 2019-04-02 14:01:03 +00:00
devs.h systat -zarc to display disk activities like -vm 2019-04-02 14:01:03 +00:00
extern.h Improve size readability. 2021-02-15 20:23:32 +01:00
fetch.c Introduce sysputpage() to display large page size with human readable format. 2020-05-15 17:37:08 +00:00
icmp6.c
icmp.c
ifcmds.c Handle device removal and removal+add cases to fix infinity rate. 2020-07-11 13:56:36 +00:00
ifstat.c Handle device removal and removal+add cases to fix infinity rate. 2020-07-11 13:56:36 +00:00
iostat.c systat -zarc to display disk activities like -vm 2019-04-02 14:01:03 +00:00
ip6.c Add stat counter for ipv6 atomic fragments 2019-04-19 17:06:43 +00:00
ip.c
keyboard.c
main.c Patch systat -zarc to display cumulative rate and round down large numbers by SI units 2020-05-11 20:34:52 +00:00
Makefile Patch systat -zarc to display cumulative rate and round down large numbers by SI units 2020-05-11 20:34:52 +00:00
Makefile.depend
mode.c
mode.h
netcmds.c
netstat.c
pigs.c systat: Avoid incorrect reallocation in pigs.c 2021-04-21 20:09:21 +02:00
sctp.c
swap.c Improve size readability. 2021-02-15 20:23:32 +01:00
sysput.c Improve size readability. 2021-02-15 20:23:32 +01:00
systat.1 systat.1: Fix synopsis 2021-02-10 18:09:49 +01:00
systat.h systat -zarc to display disk activities like -vm 2019-04-02 14:01:03 +00:00
tcp.c
vmstat.c Adjust to display more than 999 sleeping threads 2020-12-27 22:32:22 +01:00
zarc.c Patch systat -zarc to display cumulative rate and round down large numbers by SI units 2020-05-11 20:34:52 +00:00