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
@ -104,5 +104,6 @@ terminate(sig)
|
||||
int sig;
|
||||
{
|
||||
|
||||
summary();
|
||||
_exit(sig == 0 ? 0 : 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user