--- rxvt-unicode/src/rxvtd.C 2009/05/08 23:52:55 1.48 +++ rxvt-unicode/src/rxvtd.C 2010/10/24 17:34:47 1.51 @@ -224,14 +224,14 @@ return err (); } -int opt_fork, opt_opendisplay, opt_quiet; -#if ENABLE_MLOCK -int opt_lock; -#endif - int main (int argc, const char *const *argv) { + int opt_fork, opt_opendisplay, opt_quiet; +#if ENABLE_MLOCK + int opt_lock; +#endif + rxvt_init (); for (int i = 1; i < argc; i++) @@ -294,10 +294,10 @@ else if (pid > 0) _exit (EXIT_SUCCESS); - ev_default_fork (); + ev_loop_fork (EV_DEFAULT_UC); } - ev_loop (0); + ev_run (); return EXIT_SUCCESS; }