ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/ircd.c
Revision: 6161
Committed: Thu Jun 18 10:55:29 2015 UTC (10 years, 2 months ago) by michael
Content type: text/x-csrc
File size: 16253 byte(s)
Log Message:
- Move all SID/UID related code to id.c

File Contents

# User Rev Content
1 adx 30 /*
2 michael 2916 * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3 adx 30 *
4 michael 5347 * Copyright (c) 1997-2015 ircd-hybrid development team
5 adx 30 *
6     * This program is free software; you can redistribute it and/or modify
7     * it under the terms of the GNU General Public License as published by
8     * the Free Software Foundation; either version 2 of the License, or
9     * (at your option) any later version.
10     *
11     * This program is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14     * GNU General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with this program; if not, write to the Free Software
18 michael 4565 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19 adx 30 * USA
20     */
21    
22 michael 2916 /*! \file ircd.c
23     * \brief Starts up and runs the ircd.
24     * \version $Id$
25     */
26    
27 adx 30 #include "stdinc.h"
28 michael 3347 #include "user.h"
29 michael 1011 #include "list.h"
30 adx 30 #include "ircd.h"
31     #include "channel.h"
32     #include "client.h"
33     #include "event.h"
34     #include "fdlist.h"
35     #include "hash.h"
36 michael 6161 #include "id.h"
37 adx 30 #include "irc_string.h"
38     #include "ircd_signal.h"
39     #include "motd.h"
40 michael 1632 #include "conf.h"
41 adx 30 #include "hostmask.h"
42     #include "parse.h"
43 michael 3322 #include "res.h"
44 adx 30 #include "restart.h"
45 michael 982 #include "rng_mt.h"
46 michael 3324 #include "auth.h"
47 adx 30 #include "s_bsd.h"
48 michael 1309 #include "log.h"
49 michael 3347 #include "server.h" /* try_connections */
50 adx 30 #include "send.h"
51     #include "whowas.h"
52     #include "modules.h"
53     #include "memory.h"
54 michael 1654 #include "mempool.h"
55 adx 30 #include "ircd_getopt.h"
56 michael 876 #include "watch.h"
57 michael 1622 #include "conf_db.h"
58 michael 1632 #include "conf_class.h"
59 michael 4325 #include "ipcache.h"
60 adx 30
61 michael 1858
62     #ifdef HAVE_LIBGEOIP
63     GeoIP *geoip_ctx;
64     #endif
65 michael 2872
66 michael 5737 struct SetOptions GlobalSetOptions; /* /quote set variables */
67 michael 5602 struct Counter Count;
68     struct ServerState_t server_state;
69     struct ServerStatistics ServerStats;
70 adx 30 struct timeval SystemTime;
71 michael 5737 struct Connection meConnection; /* That's also part of me */
72 michael 5470 struct Client me = { .connection = &meConnection }; /* That's me */
73 adx 30
74 michael 5460 char **myargv;
75 adx 30 const char *logFileName = LPATH;
76     const char *pidFileName = PPATH;
77    
78 michael 5460 unsigned int dorehash;
79     unsigned int doremotd;
80 michael 1013 unsigned int splitmode;
81     unsigned int splitchecking;
82     unsigned int split_users;
83 adx 30 unsigned int split_servers;
84    
85 michael 4094 static struct event event_cleanup_tklines =
86     {
87     .name = "cleanup_tklines",
88     .handler = cleanup_tklines,
89     .when = CLEANUP_TKLINES_TIME
90     };
91    
92     static struct event event_try_connections =
93     {
94     .name = "try_connections",
95     .handler = try_connections,
96     .when = STARTUP_CONNECTIONS_TIME
97     };
98    
99     static struct event event_comm_checktimeouts =
100     {
101     .name = "comm_checktimeouts",
102     .handler = comm_checktimeouts,
103     .when = 1
104     };
105    
106     static struct event event_save_all_databases =
107     {
108     .name = "save_all_databases",
109     .handler = save_all_databases,
110     .when = DATABASE_UPDATE_TIMEOUT
111     };
112    
113     struct event event_write_links_file =
114     {
115     .name = "write_links_file",
116     .handler = write_links_file,
117     };
118    
119    
120 adx 30 /*
121     * print_startup - print startup information
122     */
123     static void
124     print_startup(int pid)
125     {
126 michael 2646 printf("ircd: version %s(%s)\n", ircd_version, serno);
127 adx 30 printf("ircd: pid %d\n", pid);
128     printf("ircd: running in %s mode from %s\n", !server_state.foreground ? "background"
129 michael 4340 : "foreground", ConfigGeneral.dpath);
130 adx 30 }
131    
132     static void
133     make_daemon(void)
134     {
135     int pid;
136    
137     if ((pid = fork()) < 0)
138     {
139     perror("fork");
140     exit(EXIT_FAILURE);
141     }
142     else if (pid > 0)
143     {
144     print_startup(pid);
145     exit(EXIT_SUCCESS);
146     }
147    
148     setsid();
149     }
150    
151     static int printVersion = 0;
152    
153 michael 3215 static struct lgetopt myopts[] =
154     {
155 michael 4340 {"configfile", &ConfigGeneral.configfile,
156 adx 30 STRING, "File to use for ircd.conf"},
157 michael 4340 {"klinefile", &ConfigGeneral.klinefile,
158 michael 1718 STRING, "File to use for kline database"},
159 michael 4340 {"dlinefile", &ConfigGeneral.dlinefile,
160 michael 1718 STRING, "File to use for dline database"},
161 michael 4340 {"xlinefile", &ConfigGeneral.xlinefile,
162 michael 1718 STRING, "File to use for xline database"},
163 michael 4340 {"resvfile", &ConfigGeneral.resvfile,
164 michael 1718 STRING, "File to use for resv database"},
165 michael 2916 {"logfile", &logFileName,
166 adx 30 STRING, "File to use for ircd.log"},
167     {"pidfile", &pidFileName,
168     STRING, "File to use for process ID"},
169 michael 2916 {"foreground", &server_state.foreground,
170 adx 30 YESNO, "Run in foreground (don't detach)"},
171 michael 2916 {"version", &printVersion,
172 adx 30 YESNO, "Print version and exit"},
173     {"help", NULL, USAGE, "Print this text"},
174     {NULL, NULL, STRING, NULL},
175     };
176    
177     void
178     set_time(void)
179     {
180 michael 2978 struct timeval newtime = { .tv_sec = 0, .tv_usec = 0 };
181 adx 30
182     if (gettimeofday(&newtime, NULL) == -1)
183     {
184 michael 1247 ilog(LOG_TYPE_IRCD, "Clock Failure (%s), TS can be corrupted",
185 adx 30 strerror(errno));
186 michael 1618 sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
187 adx 30 "Clock Failure (%s), TS can be corrupted",
188     strerror(errno));
189 michael 3167 server_die("Clock Failure", 1);
190 adx 30 }
191    
192     if (newtime.tv_sec < CurrentTime)
193     {
194 michael 2980 ilog(LOG_TYPE_IRCD, "System clock is running backwards - (%lu < %lu)",
195     (unsigned long)newtime.tv_sec, (unsigned long)CurrentTime);
196     sendto_realops_flags(UMODE_DEBUG, L_ALL, SEND_NOTICE,
197     "System clock is running backwards - (%lu < %lu)",
198     (unsigned long)newtime.tv_sec,
199     (unsigned long)CurrentTime);
200 adx 30 set_back_events(CurrentTime - newtime.tv_sec);
201     }
202    
203     SystemTime.tv_sec = newtime.tv_sec;
204     SystemTime.tv_usec = newtime.tv_usec;
205     }
206    
207     static void
208     io_loop(void)
209     {
210 michael 3215 while (1)
211 adx 30 {
212     if (listing_client_list.head)
213     {
214 michael 4815 dlink_node *node = NULL, *node_next = NULL;
215     DLINK_FOREACH_SAFE(node, node_next, listing_client_list.head)
216     safe_list_channels(node->data, 0);
217 adx 30 }
218    
219 michael 4094 /* Run pending events */
220     event_run();
221 adx 30
222     comm_select();
223     exit_aborted_clients();
224     free_exited_clients();
225    
226     /* Check to see whether we have to rehash the configuration .. */
227     if (dorehash)
228     {
229 michael 4982 conf_rehash(1);
230 adx 30 dorehash = 0;
231     }
232 michael 3215
233 adx 30 if (doremotd)
234     {
235 michael 2150 motd_recache();
236 michael 1618 sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
237 michael 3065 "Got signal SIGUSR1, reloading motd file(s)");
238 adx 30 doremotd = 0;
239     }
240     }
241     }
242    
243     /* initalialize_global_set_options()
244     *
245     * inputs - none
246     * output - none
247 michael 2916 * side effects - This sets all global set options needed
248 adx 30 */
249     static void
250     initialize_global_set_options(void)
251     {
252 michael 5489 GlobalSetOptions.maxclients = ConfigServerInfo.default_max_clients;
253 michael 5499 GlobalSetOptions.autoconn = 1;
254 adx 30 GlobalSetOptions.spam_time = MIN_JOIN_LEAVE_TIME;
255 michael 5499 GlobalSetOptions.spam_num = MAX_JOIN_LEAVE_COUNT;
256     GlobalSetOptions.floodcount = ConfigGeneral.default_floodcount;
257 michael 5489 GlobalSetOptions.joinfloodcount = ConfigChannel.default_join_flood_count;
258     GlobalSetOptions.joinfloodtime = ConfigChannel.default_join_flood_time;
259 adx 30
260     split_servers = ConfigChannel.default_split_server_count;
261     split_users = ConfigChannel.default_split_user_count;
262    
263     if (split_users && split_servers && (ConfigChannel.no_create_on_split ||
264     ConfigChannel.no_join_on_split))
265     {
266     splitmode = 1;
267     splitchecking = 1;
268     }
269    
270     GlobalSetOptions.ident_timeout = IDENT_TIMEOUT;
271     }
272    
273     /* initialize_server_capabs()
274     *
275     * inputs - none
276     * output - none
277     */
278     static void
279     initialize_server_capabs(void)
280     {
281 michael 5796 add_capability("QS", CAP_QS);
282     add_capability("EOB", CAP_EOB);
283     add_capability("CLUSTER", CAP_CLUSTER);
284     add_capability("SVS", CAP_SVS);
285     add_capability("CHW", CAP_CHW);
286     add_capability("HOPS", CAP_HOPS);
287 adx 30 }
288    
289     /* write_pidfile()
290     *
291     * inputs - filename+path of pid file
292     * output - NONE
293     * side effects - write the pid of the ircd to filename
294     */
295     static void
296     write_pidfile(const char *filename)
297     {
298 michael 1325 FILE *fb;
299 adx 30
300 michael 1325 if ((fb = fopen(filename, "w")))
301 adx 30 {
302 michael 2691 char buff[IRCD_BUFSIZE];
303 adx 30 unsigned int pid = (unsigned int)getpid();
304    
305 michael 1325 snprintf(buff, sizeof(buff), "%u\n", pid);
306    
307 michael 4736 if (fputs(buff, fb) == -1)
308 michael 5737 ilog(LOG_TYPE_IRCD, "Error writing to pid file %s: %s",
309     filename, strerror(errno));
310 adx 30
311 michael 1325 fclose(fb);
312 adx 30 }
313     else
314 michael 5566 ilog(LOG_TYPE_IRCD, "Error opening pid file %s: %s",
315 michael 4748 filename, strerror(errno));
316 adx 30 }
317    
318     /* check_pidfile()
319     *
320     * inputs - filename+path of pid file
321     * output - none
322     * side effects - reads pid from pidfile and checks if ircd is in process
323     * list. if it is, gracefully exits
324     * -kre
325     */
326     static void
327     check_pidfile(const char *filename)
328     {
329 michael 1325 FILE *fb;
330 michael 2691 char buff[IRCD_BUFSIZE];
331 adx 30 pid_t pidfromfile;
332    
333     /* Don't do logging here, since we don't have log() initialised */
334 michael 1325 if ((fb = fopen(filename, "r")))
335 adx 30 {
336 michael 4733 if (!fgets(buff, 20, fb))
337 adx 30 {
338     /* log(L_ERROR, "Error reading from pid file %s (%s)", filename,
339     * strerror(errno));
340     */
341     }
342     else
343     {
344     pidfromfile = atoi(buff);
345    
346     if (!kill(pidfromfile, 0))
347     {
348     /* log(L_ERROR, "Server is already running"); */
349     printf("ircd: daemon is already running\n");
350     exit(-1);
351     }
352     }
353    
354 michael 1325 fclose(fb);
355 adx 30 }
356     else if (errno != ENOENT)
357     {
358     /* log(L_ERROR, "Error opening pid file %s", filename); */
359     }
360     }
361    
362     /* setup_corefile()
363     *
364     * inputs - nothing
365     * output - nothing
366     * side effects - setups corefile to system limits.
367     * -kre
368     */
369     static void
370     setup_corefile(void)
371     {
372     #ifdef HAVE_SYS_RESOURCE_H
373     struct rlimit rlim; /* resource limits */
374    
375     /* Set corefilesize to maximum */
376     if (!getrlimit(RLIMIT_CORE, &rlim))
377     {
378     rlim.rlim_cur = rlim.rlim_max;
379     setrlimit(RLIMIT_CORE, &rlim);
380     }
381     #endif
382     }
383    
384 michael 2228 #ifdef HAVE_LIBCRYPTO
385     static int
386     always_accept_verify_cb(int preverify_ok, X509_STORE_CTX *x509_ctx)
387     {
388     return 1;
389     }
390     #endif
391    
392 adx 30 /* init_ssl()
393     *
394     * inputs - nothing
395     * output - nothing
396     * side effects - setups SSL context.
397     */
398     static void
399 michael 1798 ssl_init(void)
400 adx 30 {
401     #ifdef HAVE_LIBCRYPTO
402     SSL_load_error_strings();
403     SSLeay_add_ssl_algorithms();
404    
405 michael 4733 if (!(ConfigServerInfo.server_ctx = SSL_CTX_new(SSLv23_server_method())))
406 adx 30 {
407 michael 4129 const char *s = ERR_lib_error_string(ERR_get_error());
408 adx 30
409 michael 4129 fprintf(stderr, "ERROR: Could not initialize the SSL Server context -- %s\n", s);
410 michael 4763 ilog(LOG_TYPE_IRCD, "ERROR: Could not initialize the SSL Server context -- %s", s);
411 michael 4497 exit(EXIT_FAILURE);
412 michael 4751 return; /* Not reached */
413 adx 30 }
414    
415 michael 4730 SSL_CTX_set_options(ConfigServerInfo.server_ctx, SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TICKET);
416 michael 4593 SSL_CTX_set_options(ConfigServerInfo.server_ctx, SSL_OP_SINGLE_DH_USE|SSL_OP_CIPHER_SERVER_PREFERENCE);
417 michael 4340 SSL_CTX_set_verify(ConfigServerInfo.server_ctx, SSL_VERIFY_PEER|SSL_VERIFY_CLIENT_ONCE,
418 michael 2228 always_accept_verify_cb);
419 michael 4730 SSL_CTX_set_session_cache_mode(ConfigServerInfo.server_ctx, SSL_SESS_CACHE_OFF);
420 michael 4892 SSL_CTX_set_cipher_list(ConfigServerInfo.server_ctx, "EECDH+HIGH:EDH+HIGH:HIGH:!aNULL");
421 adx 30
422 michael 4744 #if OPENSSL_VERSION_NUMBER >= 0x009080FFL && !defined(OPENSSL_NO_ECDH)
423 michael 4070 {
424     EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
425    
426     if (key)
427     {
428 michael 4340 SSL_CTX_set_tmp_ecdh(ConfigServerInfo.server_ctx, key);
429 michael 4070 EC_KEY_free(key);
430     }
431     }
432    
433 michael 4340 SSL_CTX_set_options(ConfigServerInfo.server_ctx, SSL_OP_SINGLE_ECDH_USE);
434 michael 4070 #endif
435    
436 michael 4733 if (!(ConfigServerInfo.client_ctx = SSL_CTX_new(SSLv23_client_method())))
437 michael 1303 {
438 michael 4129 const char *s = ERR_lib_error_string(ERR_get_error());
439 michael 1303
440 michael 4129 fprintf(stderr, "ERROR: Could not initialize the SSL Client context -- %s\n", s);
441 michael 4763 ilog(LOG_TYPE_IRCD, "ERROR: Could not initialize the SSL Client context -- %s", s);
442 michael 4497 exit(EXIT_FAILURE);
443 michael 4751 return; /* Not reached */
444 michael 1303 }
445    
446 michael 4730 SSL_CTX_set_options(ConfigServerInfo.client_ctx, SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TICKET);
447 michael 4340 SSL_CTX_set_options(ConfigServerInfo.client_ctx, SSL_OP_SINGLE_DH_USE);
448     SSL_CTX_set_verify(ConfigServerInfo.client_ctx, SSL_VERIFY_PEER|SSL_VERIFY_CLIENT_ONCE,
449 michael 2228 always_accept_verify_cb);
450 michael 4730 SSL_CTX_set_session_cache_mode(ConfigServerInfo.client_ctx, SSL_SESS_CACHE_OFF);
451 adx 30 #endif /* HAVE_LIBCRYPTO */
452     }
453    
454     int
455     main(int argc, char *argv[])
456     {
457 michael 2253 /* Check to see if the user is running us as root, which is a nono */
458 michael 4733 if (!geteuid())
459 adx 30 {
460 michael 3525 fprintf(stderr, "ERROR: This server won't run as root/superuser\n");
461 michael 982 return -1;
462 adx 30 }
463    
464     /* Setup corefile size immediately after boot -kre */
465     setup_corefile();
466    
467 michael 5545 /* Save server boot time right away, so getrusage works correctly */
468 adx 30 set_time();
469    
470 michael 5545 /* It's not random, but it ought to be a little harder to guess */
471 michael 982 init_genrand(SystemTime.tv_sec ^ (SystemTime.tv_usec | (getpid() << 20)));
472    
473 michael 5545 dlinkAdd(&me, &me.node, &global_client_list);
474    
475 michael 4340 ConfigGeneral.dpath = DPATH;
476     ConfigGeneral.spath = SPATH;
477     ConfigGeneral.mpath = MPATH;
478     ConfigGeneral.configfile = CPATH; /* Server configuration file */
479     ConfigGeneral.klinefile = KPATH; /* Server kline file */
480     ConfigGeneral.xlinefile = XPATH; /* Server xline file */
481     ConfigGeneral.dlinefile = DLPATH; /* dline file */
482     ConfigGeneral.resvfile = RESVPATH; /* resv file */
483 michael 1702
484 adx 30 myargv = argv;
485 michael 5723 umask(077); /* umask 077: u=rwx,g=,o= */
486 adx 30
487     parseargs(&argc, &argv, myopts);
488    
489     if (printVersion)
490     {
491 michael 2646 printf("ircd: version %s(%s)\n", ircd_version, serno);
492 adx 30 exit(EXIT_SUCCESS);
493     }
494    
495 michael 4340 if (chdir(ConfigGeneral.dpath))
496 adx 30 {
497     perror("chdir");
498     exit(EXIT_FAILURE);
499     }
500    
501 michael 1798 ssl_init();
502 adx 30
503     if (!server_state.foreground)
504     {
505     make_daemon();
506     close_standard_fds(); /* this needs to be before init_netio()! */
507     }
508     else
509     print_startup(getpid());
510    
511     setup_signals();
512    
513     /* We need this to initialise the fd array before anything else */
514     fdlist_init();
515 michael 1831 log_set_file(LOG_TYPE_IRCD, 0, logFileName);
516 michael 4415
517 michael 2632 init_netio(); /* This needs to be setup early ! -- adrian */
518 michael 2253
519 adx 30 /* Check if there is pidfile and daemon already running */
520     check_pidfile(pidFileName);
521    
522 michael 1654 mp_pool_init();
523 adx 30 init_dlink_nodes();
524 michael 2159 init_isupport();
525 adx 30 dbuf_init();
526 michael 1798 hash_init();
527 michael 4319 ipcache_init();
528 michael 1798 client_init();
529 michael 1632 class_init();
530 michael 1358 whowas_init();
531 michael 876 watch_init();
532 michael 1798 auth_init(); /* Initialise the auth code */
533 michael 998 init_resolver(); /* Needs to be setup before the io loop */
534 michael 1404 modules_init();
535 adx 30 read_conf_files(1); /* cold start init conf files */
536     initialize_server_capabs(); /* Set up default_server_capabs */
537 michael 5489 initialize_global_set_options(); /* Has to be called after read_conf_files() */
538 michael 1798 channel_init();
539 michael 2216 read_links_file();
540 michael 2150 motd_init();
541 michael 5392 user_usermodes_init();
542 michael 1858 #ifdef HAVE_LIBGEOIP
543     geoip_ctx = GeoIP_new(GEOIP_MEMORY_CACHE);
544     #endif
545 adx 30
546 michael 4340 if (EmptyString(ConfigServerInfo.name))
547 michael 1115 {
548 michael 1247 ilog(LOG_TYPE_IRCD, "ERROR: No server name specified in serverinfo block.");
549 michael 1115 exit(EXIT_FAILURE);
550     }
551    
552 michael 4340 strlcpy(me.name, ConfigServerInfo.name, sizeof(me.name));
553 adx 30
554     /* serverinfo{} description must exist. If not, error out.*/
555 michael 4340 if (EmptyString(ConfigServerInfo.description))
556 adx 30 {
557 michael 1247 ilog(LOG_TYPE_IRCD, "ERROR: No server description specified in serverinfo block.");
558 adx 30 exit(EXIT_FAILURE);
559     }
560 michael 885
561 michael 4340 strlcpy(me.info, ConfigServerInfo.description, sizeof(me.info));
562 adx 30
563 michael 6156 if (EmptyString(ConfigServerInfo.sid))
564     {
565     ilog(LOG_TYPE_IRCD, "Generating server ID");
566     generate_sid();
567     }
568     else
569     {
570     strlcpy(me.id, ConfigServerInfo.sid, sizeof(me.id));
571     }
572    
573 michael 5545 me.from = &me;
574     me.servptr = &me;
575     me.connection->lasttime = CurrentTime;
576     me.connection->since = CurrentTime;
577 michael 4588 me.connection->firsttime = CurrentTime;
578 adx 30
579     SetMe(&me);
580     make_server(&me);
581    
582 michael 1115 hash_add_id(&me);
583 adx 30 hash_add_client(&me);
584 michael 2916
585 michael 4209 dlinkAdd(&me, make_dlink_node(), &global_server_list);
586 adx 30
587 michael 6156 init_uid();
588    
589 michael 1622 load_kline_database();
590     load_dline_database();
591     load_xline_database();
592     load_resv_database();
593    
594 adx 30 load_all_modules(1);
595     load_conf_modules();
596     load_core_modules(1);
597 michael 1115
598 adx 30 write_pidfile(pidFileName);
599    
600 michael 1247 ilog(LOG_TYPE_IRCD, "Server Ready");
601 adx 30
602 michael 4094 event_addish(&event_cleanup_tklines, NULL);
603 adx 30
604     /* We want try_connections to be called as soon as possible now! -- adrian */
605     /* No, 'cause after a restart it would cause all sorts of nick collides */
606 michael 4094 event_addish(&event_try_connections, NULL);
607 adx 30
608     /* Setup the timeout check. I'll shift it later :) -- adrian */
609 michael 4399 event_add(&event_comm_checktimeouts, NULL);
610 adx 30
611 michael 4094 event_addish(&event_save_all_databases, NULL);
612 michael 1625
613 adx 30 if (ConfigServerHide.links_delay > 0)
614 michael 4094 {
615     event_write_links_file.when = ConfigServerHide.links_delay;
616     event_addish(&event_write_links_file, NULL);
617     }
618 adx 30 else
619     ConfigServerHide.links_disabled = 1;
620    
621     if (splitmode)
622 michael 4133 event_addish(&splitmode_event, NULL);
623 adx 30
624     io_loop();
625 michael 885 return 0;
626 adx 30 }

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision