]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Make ./inspircd ignore SIGPIPE and start running without the user having to type...
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 2 Mar 2006 01:31:08 +0000 (01:31 +0000)
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 2 Mar 2006 01:31:08 +0000 (01:31 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3412 e03df62e-2008-0410-955e-edbf42e46eb7

.inspircd.inc

index 67daff2fe28aa830eb577581dafae034907bcdee..f25a3a179eb7806b8a1044c9ccde6e46ccc99ad0 100644 (file)
@@ -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;
 }
-