Whamcloud - gitweb
b=21514
authorbrian <brian>
Fri, 4 Dec 2009 21:48:50 +0000 (21:48 +0000)
committerbrian <brian>
Fri, 4 Dec 2009 21:48:50 +0000 (21:48 +0000)
commit687e7f34d5fd10bb7e4f0dfbf61d28eb7703618e
treed7a6cbb9b233b035e983283dacfe859660a0f5f2
parent06cd1ba05be7600d2b36e16fd48494dcd40c4bac
b=21514
i=wangyb
i=yangsheng

If lbuild is interrupted (i.e. LBATS "Cancel") then it should not call
the ccache -s exit trap action because experience has shown that the
ccache binary is gone by the time lbuild gets to calling it.

Also, extend the API for the delete_exit_trap() to handle multiple
action handles in a single call.  This makes it easy to create a stack
of actions and then delete them all in a single command.

What would be even nicer would be (shell and pdsh style) glob handling
so that one could do delete_exit_trap foo[1-10], assuming one pushed 10
actions on a stack to be unwound during an operation that is supposed to
be atomic.  Or more simply delete_exit_trap foo*.
build/exit_traps.sh
build/lbuild