summaryrefslogtreecommitdiff
path: root/.inspircd.inc
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-02 01:31:08 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-02 01:31:08 +0000
commitc881ce41209586df45a62c61ae1e74ed8456c0a0 (patch)
tree1deff328c3df9f17ed0f05331b02fee0a9fa96bc /.inspircd.inc
parent274c6486629898d1236871194e8090c0867dab5c (diff)
Make ./inspircd ignore SIGPIPE and start running without the user having to type 'run' / 'r'
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3412 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to '.inspircd.inc')
-rw-r--r--.inspircd.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/.inspircd.inc b/.inspircd.inc
index 67daff2fe..f25a3a179 100644
--- a/.inspircd.inc
+++ b/.inspircd.inc
@@ -92,7 +92,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 --args $binpath/$executable -nofork -debug");
+ system("gdb --eval-command=\"handle SIGPIPE pass nostop noprint\" --eval-command=\"run\" --args $binpath/$executable -nofork -debug");
}
@@ -198,4 +198,3 @@ sub getprocessid {
close PIDFILE;
return $pid;
}
-