http://blog.nelhage.com/2011/02/changing-ctty/
http://blog.nelhage.com/2011/01/reptyr-attach-a-running-proc...
And related projects:
http://blog.habets.pp.se/2009/03/Moving-a-process-to-another...
http://caca.zoy.org/wiki/neercs
[edit] Ah, never been unfortunate enough to disown the wrong process, so I guess I see the need to reparent something now. Cool.
http://blog.ksplice.com/2011/03/disown-zombie-children-and-t...
http://www.reddit.com/r/programming/comments/f768r/reptyr_at...
Also note you need permissive ptrace settings for this to work. The package's README contains more details.
http://blog.nelhage.com/2011/02/changing-ctty/
http://blog.nelhage.com/2011/01/reptyr-attach-a-running-proc...
And related projects:
http://blog.habets.pp.se/2009/03/Moving-a-process-to-another...
http://caca.zoy.org/wiki/neercs