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
+2002-04-02 Kevin L Mitchell <klmitch@mit.edu>
+
+ * ircd/ircd.c: display event engine and MAXCONNECTIONS information
+
2002-04-02 Alex Badea <vampire@p16.pub.ro>
* ircd-patch: Automatically generate a version string from patches
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);