Not logged in
Log in now
Create an account
Subscribe to LWN
Pencil, Pencil, and Pencil
Dividing the Linux desktop
LWN.net Weekly Edition for June 13, 2013
A report from pgCon 2013
Little things that matter in language design
Is it possible to change the files 0, 1, and 2
in the directory /proc/PID/fd ?
I want to change stdin, stdout and stderr
of a stopped process to a different Terminal...
Maybe checkpoint/restore can help to achieve this.
Changing the files even as root is impossible...
Changing standard Input and Output to a different virtual Terminal.
Posted Nov 30, 2012 17:40 UTC (Fri) by nybble41 (subscriber, #55106)
(gdb) attach $pid
(gdb) call close(1)
$1 = 0
(gdb) call open("/dev/pts/$N", 1, 0660) // O_WRONLY = 1
$2 = 1
Posted Nov 30, 2012 23:03 UTC (Fri) by jimparis (subscriber, #38647)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds