Transferring a parent process and its childs

Suppose I have a konsole running with a process building a port package and plasma session crashed (again 😣) and now I want to transfer the process and its sub process to a tty, what's the proper way of doing it? and is reptyr the right tool?
 
systeutils/reptyr with tmux is probably what you want. Start whatever you're doing in a tmux session make a note of its PID. As I write this, I was thinking that that was what I used to do, but I realize I'm remembering incorrectly. Still, it sounds like it might work. <shrug> Sorry, it really did seem a good idea when I started typing--I'm leaving the thought here to see what other, smarter people will say.
 
-T

Use an alternate mode of attaching, "TTY-stealing". In
this mode, reptyr will not ptrace(2) the target
process, but will attempt to discover the terminal
emulator for that process' pty, and steal the master
end of the pty. This mode is more reliable and flexible
in many circumstances (for instance, it can attach all
processes on a tty, rather than just a single process).
However, as a downside, children of sshd(8) cannot be
attached via -T unless reptyr is run as root. See for
more information about tty-stealing.
it migth work but this not a quote from freebsd manpages ,but rather termux. I'll have to check if the option is in freebsd too.

[edit]

Yes same its the same manpages.
 
It didn't work (I mean for me, my need, otherwise it worked as expected) reptyr [PID] it waited for child process to stop, it would have waited the build to be done. This is not what I was looking for. the only option that would have worked doesn't on freebsd.

I did [CTR-C] to terminate it and it kill the all thing because it was the parent process I was messing with.

I'm making install again in tty this time

I'll leave this thread open in case someone have anything to add and maybe a solution.
 
Back
Top