]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - .inspircd.inc
Added a sleep on startup to stop it mucking up the display
[user/henk/code/inspircd.git] / .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;
 }
-