From: Paul Mackerras Date: Mon, 11 Aug 2008 00:15:19 GMT Subject: Re: [PATCH (GITK BUGFIX)] gitk: Allow safely calling nukefile from a run queue handler. Message-ID: <18591.33943.93992.177637@cargo.ozlabs.ibm.com> In-Reply-To: <200808091441.50444.angavrilov@gmail.com> Alexander Gavrilov writes: > Originally dorunq assumed that the queue entry remained first > in the queue after the script eval, and blindly removed it. > However, if the handler calls nukefile, it may not be the > case anymore, and a random queue entry gets dropped instead. > > This patch makes dorunq remove the entry before calling the > script, and adds a global variable to allow other functions > to determine if they are called from within a dorunq handler. > > Signed-off-by: Alexander Gavrilov Thanks, applied.