Permalink
Browse files

Exit immediately with no cleanup

  • Loading branch information...
bmcdorman committed Feb 21, 2013
1 parent 5a6046a commit b132ccf96d9c29b94d8247ba6ed8dfe009201159
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/botball_c.cpp
View
@@ -17,7 +17,6 @@ class ShutDownIn : public Thread
ShutDownIn(double s)
: m_s(s)
{
- atexit(&halt);
}
~ShutDownIn()
@@ -30,7 +29,7 @@ class ShutDownIn : public Thread
msleep(m_s * 1000.0);
const double end = seconds();
std::cout << std::endl << "Shutdown after " << (end - start) << " seconds" << std::endl;
- exit(0);
+ _Exit(0);
}
private:

0 comments on commit b132ccf

Please sign in to comment.