HCoop
/
clinton
/
bobotpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2005-06-28 10:08:45 by unknown_lamer]
[clinton/bobotpp.git]
/
source
/
Main.C
diff --git
a/source/Main.C
b/source/Main.C
index
c79624a
..
6bc48df
100644
(file)
--- a/
source/Main.C
+++ b/
source/Main.C
@@
-14,7
+14,8
@@
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+// 02110-1301, USA.
#ifdef HAVE_CONFIG_H
#include "config.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
@@
-222,23
+223,32
@@
namespace
// initialize the Parser
Parser::init ();
// 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;
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();
#ifdef USESCRIPTS
Interp::Startup();
+ if (debug)
+ {
+ SCM_DEVAL_P = 1;
+ SCM_RECORD_POSITIONS_P = 1;
+ SCM_BACKTRACE_P = 1;
+ SCM_RESET_DEBUG_MODE;
+ }
#endif
b = new Bot(configFile, debug);
#endif
b = new Bot(configFile, debug);