mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-10-22 11:07:41 +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:
@@ -140,7 +140,7 @@ void ControlThread::run()
|
|||||||
keyboard_thread_.timed_join(boost::posix_time::seconds(1));
|
keyboard_thread_.timed_join(boost::posix_time::seconds(1));
|
||||||
#endif
|
#endif
|
||||||
#ifndef OLD_BOOST
|
#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
|
#endif
|
||||||
|
|
||||||
LOG(INFO) << "Flowgraph stopped";
|
LOG(INFO) << "Flowgraph stopped";
|
||||||
@@ -597,5 +597,6 @@ void ControlThread::keyboard_listener()
|
|||||||
}
|
}
|
||||||
read_keys = false;
|
read_keys = false;
|
||||||
}
|
}
|
||||||
|
usleep(500000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user