1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-18 11:09:56 +00:00

Bug fix: prevent random core dumps at gnss-sdr exit process by adding 500ms delay at gnss-sdr stop process to allow all the message queues to process the remaining messages.

This commit is contained in:
Javier Arribas 2016-04-18 14:38:25 +02:00
parent 853e314bf0
commit 31ae25cb83

View File

@ -140,7 +140,7 @@ void ControlThread::run()
keyboard_thread_.timed_join(boost::posix_time::seconds(1));
#endif
#ifndef OLD_BOOST
keyboard_thread_.try_join_until(boost::chrono::steady_clock::now() + boost::chrono::milliseconds(50));
keyboard_thread_.try_join_until(boost::chrono::steady_clock::now() + boost::chrono::milliseconds(1000));
#endif
LOG(INFO) << "Flowgraph stopped";
@ -597,5 +597,6 @@ void ControlThread::keyboard_listener()
}
read_keys = false;
}
usleep(500000);
}
}