--- rxvt-unicode/src/rxvtd.C 2007/11/17 07:28:00 1.36 +++ rxvt-unicode/src/rxvtd.C 2007/11/24 11:06:13 1.39 @@ -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,9 +273,11 @@ } else if (pid > 0) _exit (EXIT_SUCCESS); + + ev_default_fork (); } - ev::ev_loop (0); + ev_loop (0); return EXIT_SUCCESS; }