From 67d2c79c7eeae56def9054b18fff4489de57dc48 Mon Sep 17 00:00:00 2001 From: "Kevin L. Mitchell" Date: Wed, 3 Apr 2002 03:41:48 +0000 Subject: [PATCH] Author: Kev Log message: Display which engines are compiled into the ircd when the -v flag is given. Also display MAXCONNECTIONS. (pull-up from u2_10_11 branch) git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@704 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 4 ++++ ircd/ircd.c | 20 +++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4efd262..995529d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-04-02 Kevin L Mitchell + + * ircd/ircd.c: display event engine and MAXCONNECTIONS information + 2002-04-02 Alex Badea * ircd-patch: Automatically generate a version string from patches diff --git a/ircd/ircd.c b/ircd/ircd.c index 8912a82..74ee561 100644 --- a/ircd/ircd.c +++ b/ircd/ircd.c @@ -437,7 +437,25 @@ static void parse_command_line(int argc, char** argv) { case 'd': dpath = optarg; break; case 'f': configfile = optarg; break; case 'h': ircd_strncpy(cli_name(&me), optarg, HOSTLEN); break; - case 'v': printf("ircd %s\n", version); exit(0); + case 'v': + printf("ircd %s\n", version); + printf("Event engines: "); +#ifdef USE_KQUEUE + printf("kqueue() "); +#endif +#ifdef USE_DEVPOLL + printf("/dev/poll "); +#endif +#ifdef USE_POLL + printf("poll()"); +#else + printf("select()"); +#endif + printf("\nCompiled for a maximum of %d connections.\n", MAXCONNECTIONS); + + + exit(0); + break; case 'x': debuglevel = atoi(optarg); -- 2.20.1