Stop and resume GCC build?

Submitted by bishop404
on July 28, 2006 - 2:20pm

Is it possible to stop and then later resume a GCC make? I started make before noon...it's now 4:20 and make is still going strong. I'm building it on my computer a work, so I'm going to be stopping it at 5, one way or another. It'd be real nice if I could simply resume it on Monday, rather than having to completely restart it. BTW, GCC-4.1.1, building in cygwin.

CTRL+C. Run make again to res

Anonymous (not verified)
on
July 28, 2006 - 3:57pm

CTRL+C. Run make again to resume the build process.

SIGSTOP

Anonymous (not verified)
on
July 29, 2006 - 8:33am

You can also send a STOP signal to the compiler (cc1 is the process name).

Check the pid with ps then do a

kill -STOP <pid>

and to resume you can later do a

kill -CONT <pid>

(kill -l lists all available signals, btw)

Have fun!

AC

Thanks

bishop404
on
July 31, 2006 - 12:41pm

Oh good. Thanks for the help!

Yes, the above knowledge seem

Anonymous (not verified)
on
July 31, 2006 - 1:58pm

Yes, the above knowledge seems very useful.

We could need a tiny wiki here which just has some snippets :)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.