- fixed task_exit hook throwing exception under certain
  circumstances under Ubuntu.
- task_exit now exits with exit (0) instead.
This commit is contained in:
Federico Hernandez 2010-10-26 21:14:31 +02:00
parent 5bc1bfe331
commit 4a1edfb9be

View file

@ -48,6 +48,7 @@
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include <algorithm> #include <algorithm>
#include <iostream>
#include "Context.h" #include "Context.h"
#include "API.h" #include "API.h"
@ -223,7 +224,8 @@ static int api_task_debug_message (lua_State* L)
static int api_task_exit (lua_State* L) static int api_task_exit (lua_State* L)
{ {
// TODO Is this the correct exception? How does the shell handle this? // TODO Is this the correct exception? How does the shell handle this?
throw std::string ("Exiting."); std::cout << "Exiting." << std::endl;
exit (0);
return 0; return 0;
} }