Skip to content

Commit

Permalink
Bug fix: prevent random core dumps at gnss-sdr exit process by adding…
Browse files Browse the repository at this point in the history
… 500ms delay at gnss-sdr stop process to allow all the message queues to process the remaining messages.
  • Loading branch information
Arribas committed Apr 18, 2016
1 parent 853e314 commit 31ae25c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/receiver/control_thread.cc
Expand Up @@ -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";
Expand Down Expand Up @@ -597,5 +597,6 @@ void ControlThread::keyboard_listener()
}
read_keys = false;
}
usleep(500000);
}
}

0 comments on commit 31ae25c

Please sign in to comment.