]> git.proxmox.com Git - mirror_iproute2.git/commit
nstat: print useful error messages in abort() cases
authorAndrea Claudi <aclaudi@redhat.com>
Mon, 17 Feb 2020 13:46:18 +0000 (14:46 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 23 Feb 2020 21:52:08 +0000 (13:52 -0800)
commit2c7056ac26412fe99443a283f0c1261cb81ccea2
treea5d1c25e0956320f37da5f134311b8913c0924fe
parent83c543af872e38654326671f6b504257d98c4489
nstat: print useful error messages in abort() cases

When nstat temporary file is corrupted or in some other corner cases,
nstat use abort() to stop its execution. This can puzzle some users,
wondering what is the reason for the crash.

This commit replaces abort() with some meaningful error messages and exit()

Reported-by: Renaud Métrich <rmetrich@redhat.com>
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
misc/nstat.c