… | |
… | |
25 | use strict; |
25 | use strict; |
26 | |
26 | |
27 | use Symbol; |
27 | use Symbol; |
28 | use List::Util; |
28 | use List::Util; |
29 | use Socket; |
29 | use Socket; |
30 | use EV 1.86; |
30 | use EV 3.2; |
31 | use Opcode; |
31 | use Opcode; |
32 | use Safe; |
32 | use Safe; |
33 | use Safe::Hole; |
33 | use Safe::Hole; |
34 | use Storable (); |
34 | use Storable (); |
35 | |
35 | |
… | |
… | |
3362 | reload_config; |
3362 | reload_config; |
3363 | db_init; |
3363 | db_init; |
3364 | load_extensions; |
3364 | load_extensions; |
3365 | |
3365 | |
3366 | $Coro::current->prio (Coro::PRIO_MAX); # give the main loop max. priority |
3366 | $Coro::current->prio (Coro::PRIO_MAX); # give the main loop max. priority |
3367 | evthread_start; |
3367 | evthread_start IO::AIO::poll_fileno; |
3368 | EV::loop; |
3368 | EV::loop; |
3369 | } |
3369 | } |
3370 | |
3370 | |
3371 | ############################################################################# |
3371 | ############################################################################# |
3372 | # initialisation and cleanup |
3372 | # initialisation and cleanup |