Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 23, 2013
An "enum" for Python 3
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
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