From: om Date: Thu, 2 Mar 2006 01:31:08 +0000 (+0000) Subject: Make ./inspircd ignore SIGPIPE and start running without the user having to type... X-Git-Tag: v2.0.23~8680 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=c881ce41209586df45a62c61ae1e74ed8456c0a0;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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; } -