--- rxvt-unicode/src/rxvtd.C 2007/11/18 00:47:13 1.38 +++ rxvt-unicode/src/rxvtd.C 2007/12/04 16:24:00 1.41 @@ -48,10 +48,11 @@ int getfd (int remote_fd); server (int fd) - : read_ev (this, &server::read_cb), - log_cb (this, &server::log_msg), - getfd_cb (this, &server::getfd) { + read_ev.set (this); + log_cb.set (this); + getfd_cb.set (this); + this->fd = fd; fcntl (fd, F_SETFD, FD_CLOEXEC); fcntl (fd, F_SETFL, 0); @@ -70,8 +71,9 @@ }; unix_listener::unix_listener (const char *sockname) -: accept_ev (this, &unix_listener::accept_cb) { + accept_ev.set (this); + sockaddr_un sa; if (strlen (sockname) >= sizeof(sa.sun_path)) @@ -274,10 +276,10 @@ else if (pid > 0) _exit (EXIT_SUCCESS); - ev::ev_default_fork (); + ev_default_fork (); } - ev::ev_loop (0); + ev_loop (0); return EXIT_SUCCESS; }