Open trusktr opened 9 years ago
Hm, I think that it won't work currently if run on a non-root process as root
, although I might be able to fix that.
Does sudo reptyr -T $pid
work? That will engage a different mode of attaching, which is designed to work if run as root, among other things.
sudo reptyr -T $pid
didn't work. It seems to freeze the terminal where the job I want to transfer is located, and on the destination terminal where I ran sudo reptyr -T $pid
the process just hangs, but I can ctrl+c
out of it.
I also had this same issue on Ubuntu 14.04, but it was solved by following the suggestion in the README:
echo 0 > /proc/sys/kernel/yama/ptrace_scope
and then executing reptyr
as non-root (using the same user that initiated the process).
Faced this issue in ubuntu 16.04 but sudo reptyr -T $pid
worked.
It seems to freeze the terminal where the job I want to transfer is located, and on the destination terminal where I ran sudo reptyr -T $pid the process just hangs, but I can ctrl+c out of it.
Did you run fg
to bring it to the foreground?
Or does it have to be used in screen?
I get this when trying: