Re: Restart Building a Package

Henrique de Moraes Holschuh <[email protected]>
Newsgroups gmane.linux.debian.devel.toolchain,gmane.linux.debian.user
Message-ID <[email protected]>
On Tue, 26 Jul 2016, Satya Prakash Prasad wrote:
> Is there a way that I can terminate an ongoing package creation process and
> then restart the same on a suitable time?

In general, no.  *Some* packages (typically very simple ones) will
tolerate this well, while others won't and will have to restart the
build from scratch.  gcc is a very complex package, it is likely it will
have to redo a lot (all?) of the build work.

May I suggest you *suspend* that build, instead?  SIGSTOP can stop
running processes (undo it using SIGCONT)...  if you're lucky, Typing ^Z
in the window with the build is enough (continue with the "fg" command).
Don't close that window, the stopped processes belong to that shell
instance.

"pstree" and "kill -s STOP" (undo with "kill -s CONT") can help you if
^Z doesn't work.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.