[plug] Re-Attaching a TTY

Matt Kemner zombie at wasp.net.au
Wed Jul 26 15:48:19 WST 2000


On Wed, 26 Jul 2000, McMeikan, Andrew wrote:

> ok, just had a quick look its like /proc/process-number/fd/file-descriptor
> I will have a play and see how to do it.

That will work fine when a process is writing to a file, which you've
accidentally delete - you can recover it through the /proc/ interface, but

I think you'll find that when a shell exits, all it's child processes get
sent a SIGHUP, and it is then up to the application what it does after
that.

Most processes exit, some (like wget) close the tty and open a logfile
elsewhere, and others just close the tty and keep running as they are, but
because they have closed the controlling tty I don't see any way to get
them to reopen a different tty, unless the program has been written
specifically to let you do that (like screen)

 - Matt




More information about the plug mailing list