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. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh