--- rxvt-unicode/src/ptytty.C 2006/01/17 10:59:32 1.36 +++ rxvt-unicode/src/ptytty.C 2006/01/17 11:53:07 1.38 @@ -224,33 +224,10 @@ static int control_tty (int fd_tty) { -#ifndef __QNX__ 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) @@ -288,7 +265,6 @@ return -1; /* fatal */ close (fd); /* ---------------------------------------- */ -#endif /* ! __QNX__ */ return 0; }