[Box Backup-dev] Moving trunk to release

Ben Summers boxbackup-dev@fluffy.co.uk
Sat, 7 Jan 2006 10:21:50 +0000


On 6 Jan 2006, at 14:26, Gary wrote:

> Ben, Martin,
>
>> The solution is to dump state
>> to a file before exiting, and loading it when starting up.
>>
>> There's a patch floating around which does this, but it needs
>> to be reviewed and adjusted before it can be accepted. If it
>> can be done in time, it would be rather nice to have it.
>
> Yes, this one was mine, off 0.09 vanilla code. Unless bbackupd  
> state object structure has changed
> in the new trunk, it should work out of the box.
>
> http://home.earthlink.net/~gniemcew/

Do you have time to get it into the SVN repository? If so, I'll set  
up an account with commit access for you. It shouldn't require much  
more than making a patch from the original sources, and applying it  
to a latest checkout.

>
>> I believe this one is slightly non-trivial though,
>> as the current patch which does work in the signal handler has
>> major problems.
>
> Yes, this one was also mine off 0.09, but it will most likely not  
> fit into the new distribution
> as-is. The part about the KeepAlive() client/server command is  
> easy, but interrupting the diffing
> process and calling the command is another story - it will need a  
> rework of the engine loop
> itself.

I don't think this is too hard. It should just be a matter of setting  
a static flag in the signal handler, and checking that flag  
reasonably often in the long processes.

Ben