Skip to content

Commit

Permalink
Exit immediately with no cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcdorman committed Feb 21, 2013
1 parent 5a6046a commit b132ccf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/botball_c.cpp
Expand Up @@ -17,7 +17,6 @@ class ShutDownIn : public Thread
ShutDownIn(double s)
: m_s(s)
{
atexit(&halt);
}

~ShutDownIn()
Expand All @@ -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:
Expand Down

0 comments on commit b132ccf

Please sign in to comment.