summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 19:46:10 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-11 19:46:10 +0000
commit2b28d1f137778f9bc82d0ff2ea271debfaa5f5ca (patch)
tree40569f11a147a57126ecd0e0e02cdcb46016e17e
parent2a76eaa8c433efb34e1d21eef7e6d2890aeff3c3 (diff)
Changes to ./inspircd to hopefully work on freebsd as well as linux..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3680 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--.gdbargs2
-rw-r--r--.inspircd.inc2
2 files changed, 3 insertions, 1 deletions
diff --git a/.gdbargs b/.gdbargs
new file mode 100644
index 000000000..4ebefe1a0
--- /dev/null
+++ b/.gdbargs
@@ -0,0 +1,2 @@
+handle SIGPIPE pass nostop noprint
+run
diff --git a/.inspircd.inc b/.inspircd.inc
index 8b4aad32a..cca512a97 100644
--- a/.inspircd.inc
+++ b/.inspircd.inc
@@ -91,7 +91,7 @@ sub debug {
# Check to see its not 'running' already.
if (getstatus() == 1) { print "InspIRCd is already running.\n"; return 0; }
# If we are still alive here.. Try starting the IRCd..
- system("gdb --eval-command=\"handle SIGPIPE pass nostop noprint\" --eval-command=\"run\" --args $binpath/$executable -nofork -debug");
+ system("gdb --command=.gdbargs --args $binpath/$executable -nofork -debug");
}