Gracefully killing and restarting a port build....

Freddie Cash fjwcash at gmail.com
Wed Jul 8 22:50:37 UTC 2020


On Wed., Jul. 8, 2020, 2:53 p.m. bob prohaska, <fbsd at www.zefox.net> wrote:

> On Wed, Jul 08, 2020 at 09:34:53AM -0600, Janky Jay, III wrote:
> > In the future, if you can, try using "screen" or "tmux" to run these
> > large builds in so you don't take the risk of losing the
> > terminal/console. Or, maybe I'm completely off-base as to how it was
> > lost to begin with.
> >
>
> AIUI, screen runs until the session terminates and then stops. In my case
> the controlling terminal was lost when the ssh connection broke. Thus, I
> think screen would have quit as well.


Nope. Screen (or tmux which is nicer to use, imo) takes over as the
controlling terminal. When the ssh connection terminates, screen continues
running (along with all the processes started in that screen session). You
reconnect via ssh, and connect to the running screen session and carry on
like nothing happened.

Cheers,
Freddie

Typos due to smartphone keyboard.


More information about the freebsd-ports mailing list