mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
Previous commit broke dd(1)'s I/O summary when it's terminated by a
signal. Fix it by adding an explicit call to summary() in terminate() (it was previously called implicitly by exit() because summary() was registered with atexit()). summary() is supposed to be signal-safe-- it handles SIGINFO almost exclusively--so this should be safe. Submitted by: bde
This commit is contained in:
parent
15fd5d220f
commit
7a507517de
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78755
@ -104,5 +104,6 @@ terminate(sig)
|
||||
int sig;
|
||||
{
|
||||
|
||||
summary();
|
||||
_exit(sig == 0 ? 0 : 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user