--- rxvt-unicode/src/ptytty.C 2006/01/17 11:02:10 1.37 +++ rxvt-unicode/src/ptytty.C 2006/01/17 12:22:59 1.39 @@ -56,6 +56,8 @@ #include #include +#include "ptytty.h" + ///////////////////////////////////////////////////////////////////////////// /* ------------------------------------------------------------------------- * @@ -227,29 +229,7 @@ int fd; /* ---------------------------------------- */ -# ifdef HAVE_SETSID setsid (); -# endif -# if defined(HAVE_SETPGID) - setpgid (0, 0); -# elif defined(HAVE_SETPGRP) - setpgrp (0, 0); -# endif - - /* ---------------------------------------- */ -# ifdef TIOCNOTTY - fd = open ("/dev/tty", O_RDWR | O_NOCTTY); - if (fd >= 0) - { - ioctl (fd, TIOCNOTTY, NULL); /* void tty associations */ - close (fd); - } -# endif - - /* ---------------------------------------- */ - fd = open ("/dev/tty", O_RDWR | O_NOCTTY); - if (fd >= 0) - close (fd); /* ouch: still have controlling tty */ /* ---------------------------------------- */ # if defined(PTYS_ARE_PTMX) && defined(I_PUSH) @@ -465,5 +445,11 @@ return true; } +// a "factory" *g* +rxvt_ptytty *rxvt_new_ptytty () +{ + return new rxvt_ptytty_unix; +} + /*----------------------- end-of-file (C source) -----------------------*/