From 0a055c34d0dace95bb5e777034015dcbafdd08f0 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Tue, 17 Feb 2015 21:43:17 +0000 Subject: [PATCH] Log timestamped messages on startup/shutdown. --- dump1090.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dump1090.c b/dump1090.c index 00511d2..d84782c 100644 --- a/dump1090.c +++ b/dump1090.c @@ -961,6 +961,7 @@ int main(int argc, char **argv) { } // Initialization + log_with_timestamp("%s %s starting up.", MODES_DUMP1090_VARIANT, MODES_DUMP1090_VERSION); modesInit(); if (Modes.net_only) { @@ -1110,6 +1111,7 @@ int main(int argc, char **argv) { pthread_join(Modes.reader_thread,NULL); // Wait on reader thread exit pthread_cond_destroy(&Modes.data_cond); // Thread cleanup - only after the reader thread is dead! pthread_mutex_destroy(&Modes.data_mutex); + log_with_timestamp("Normal exit."); #ifndef _WIN32 pthread_exit(0);