[Scons-users] parallel invocation of SCons

Fred Wright fw at fwright.net
Mon Feb 18 17:42:39 EST 2019


On Mon, 18 Feb 2019, Bill Deegan wrote:

> ahh good point. you should register an atexit() handler to release the lock.? The beginning of your SConstruct to grab/wait for
> the lock.

Beware that Python's atexit isn't reliable (unless SCons already fixes 
it).  Most signal-based terminations bypass the normal exit stuff 
(including atexit handlers), so you need to add your own signal handler 
that calls sys.exit().  And since the "Terminated" message is part of the 
default signal handler, yours needs to print a message if you want one.

Fred Wright


More information about the Scons-users mailing list