4 ms·
Doesn’t ^z and bg solve this?
by yaur 2y ago
Doesn’t ^z and bg solve this?
- adw 2y agoNot really - often what I’m doing is running something with a conditional breakpoint which will only be hit a long way into process lifetime (potentially nondeterministically), so I really do need “a session which will persist indefinitely including across SSH sessions”.
- tombert 2y agoYep, if you remember to do that. What's nice about tmux is that this happens automatically. It requires zero additional mental forethought outside of typing tmux exactly once, and then all your jobs are safe, and you can still see them in the foreground.
- duskwuff 2y agoNo, it doesn't. There's no way to reattach to a process which was backgrounded and detached in another terminal -- once the parent terminal is gone, the process is stuck in the background. Most interactive processes will terminate immediately when this happens.
- akira2501 2y agoSIGHUP
- nephanth 2y agoYou'd also need to disown it if you want it to persist sessions If you just bg it, it will still die when your session disconnects
- bandie91 2y agogenerally you can not bring processes to the foreground once you left the session. there are hacky ways to do it though: http://github.com/nelhage/reptyr http://github.com/nelhage/reptyr http://github.com/jerome-pouiller/reredirect http://github.com/jerome-pouiller/reredirect https://github.com/lkundrak/retty/ https://github.com/lkundrak/retty/