This commit is contained in:
jed
2012-11-29 18:28:49 -08:00
parent 9ce31adc28
commit 0865c99cee
2 changed files with 3 additions and 1 deletions

View File

@@ -82,11 +82,13 @@ void sigIntHandler(int)
void Application::run()
{
#ifndef WIN32
#ifdef SIGINT
struct sigaction sa;
memset(&sa, 0, sizeof(sa));
sa.sa_handler = sigIntHandler;
sigaction(SIGINT, &sa, NULL);
#endif
#endif
assert(mTxnDB == NULL);