explicit calls to shutdown_all() which was causing this to be called twice.
This could cause problems with some IO modules (such as attempting to close
an invalid file descriptor the second time.)
FGIO::shutdown_all() {
FGProtocol *p;
- // cout << "processing I/O channels" << endl;
+ // cout << "shutting down all I/O channels" << endl;
typedef vector< FGProtocol* > container;
container::iterator i = io_channels.begin();
{
SG_LOG(SG_GENERAL, SG_INFO, "Exiting FlightGear with status " << status);
- globals->get_io()->shutdown_all();
exit(status);
}