--- rxvt-unicode/src/rxvtd.C 2004/03/17 05:15:02 1.10 +++ rxvt-unicode/src/rxvtd.C 2004/04/04 23:52:37 1.12 @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -52,6 +53,8 @@ exit (EXIT_FAILURE); } + fcntl (fd, F_SETFD, FD_CLOEXEC); + sockaddr_un sa; sa.sun_family = AF_UNIX; @@ -83,7 +86,10 @@ int fd2 = accept (fd, 0, 0); if (fd2 >= 0) - new server (fd2); + { + fcntl (fd2, F_SETFD, FD_CLOEXEC); + new server (fd2); + } } void server::log_msg (const char *msg)