[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: starting ircd from inetd



On Mon, Feb 26, 2001 at 07:34:22PM +0100, Kurt Roeckx wrote:
> 
> It only seems to work here if I add a P-line for an other port
> than the one listed in /etc/services.  I'll look into it, and let
> you know.

Here is a small patch for that.


Kurt

--- irc2.10.3p1/ircd/ircd.c.old	Mon Feb 26 19:52:20 2001
+++ irc2.10.3p1/ircd/ircd.c	Mon Feb 26 19:51:36 2001
@@ -887,7 +887,7 @@
 			acptr = NULL;
 		    }
 		/* exit if there is nothing to listen to */
-		if (acptr == NULL)
+		if (acptr == NULL && !(bootopt & BOOT_INETD))
 			exit(-1);
 	    }