// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+// 02110-1301, USA.
#ifdef HAVE_CONFIG_H
#include "config.h"
// initialize the Parser
Parser::init ();
- if (!debug) {
- if (background)
- switch (fork()) {
- case -1:
- std::cout << "Could not run in the background. Exiting...\n";
- perror("fork");
- exit(1);
- case 0:
+ if (!debug)
+ {
+ if (background)
+ switch (fork())
+ {
+ case -1:
+ std::cout << "Could not run in the background. Exiting...\n";
+ perror("fork");
+ exit(1);
+ case 0:
break;
- default:
- std::cout << "Running in the background...\n";
- exit(0);
- }
- }
+ default:
+ std::cout << "Running in the background...\n";
+ exit(0);
+ }
+ }
#ifdef USESCRIPTS
Interp::Startup();
+ if (debug)
+ {
+ SCM_DEVAL_P = 1;
+ SCM_RECORD_POSITIONS_P = 1;
+ SCM_RESET_DEBUG_MODE;
+ }
#endif
b = new Bot(configFile, debug);