diff options
Diffstat (limited to 'src/common/abort.c')
| -rw-r--r-- | src/common/abort.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/abort.c b/src/common/abort.c index 37d730f..9f44133 100644 --- a/src/common/abort.c +++ b/src/common/abort.c @@ -34,6 +34,7 @@ #include "defines.h" #include "common.h" +#include <errno.h> #include <signal.h> #include <stdlib.h> @@ -76,6 +77,8 @@ break_now(int signo) kill(tcpdump.pid, SIGKILL); #endif */ + if (gettimeofday(&end, NULL) < 0) + errx(-1, "gettimeofday() failed: %s", strerror(errno)); packet_stats(&begin, &end, bytes_sent, pkts_sent, failed); exit(1); } |
