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:
Dima Dorfman 2001-06-25 06:17:02 +00:00
parent 15fd5d220f
commit 7a507517de

View File

@ -104,5 +104,6 @@ terminate(sig)
int sig;
{
summary();
_exit(sig == 0 ? 0 : 1);
}