--- rxvt-unicode/src/rxvtd.C 2007/11/17 07:28:00 1.36 +++ rxvt-unicode/src/rxvtd.C 2007/11/18 00:47:13 1.38 @@ -52,6 +52,7 @@ log_cb (this, &server::log_msg), getfd_cb (this, &server::getfd) { + this->fd = fd; fcntl (fd, F_SETFD, FD_CLOEXEC); fcntl (fd, F_SETFL, 0); read_ev.start (fd, ev::READ); @@ -272,6 +273,8 @@ } else if (pid > 0) _exit (EXIT_SUCCESS); + + ev::ev_default_fork (); } ev::ev_loop (0);