Hello All, I have a small puzzle here. I have a program (umlinux actually, in skas mode), that coes TIOCSCTYY. When I run it normally, it works. When I run it from gdb, it works. However I want it to have a different controling terminal from the debuger (it does some fiddling and interrupt does not work for the debuger). Thus I wrote a script to tell me the tty name and close it's file descriptors. But it does not suffice to detach from the tty. Is it somehow possible to obtain a pty (not interested in usused virtual console - only in different kinds of teminal emulators) so that a process that has it's stdin, stdout and stderr redirected there can claim it it's controling tty? ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/