New ctrl-c handling and NEXT merged to MASTER
Daniel Shahaf
d.s at daniel.shahaf.name
Thu Jan 5 01:22:18 GMT 2012
Sebastian Spaeth wrote on Wed, Jan 04, 2012 at 19:48:38 +0100:
> Hi all,
>
> I just pushed commit 0ccf06d5e631db2a5e139d63335134d983591487
>
> Implement clean CTRL-C termination
>
> Previously, we would simply bail out in an ugly way, potentially leaving
> temporary files around etc, or while writing status files. Hand SIGINT
> and SIGTERM as an event to the Account class, and make that bail out
> cleanly at predefined points. Stopping on ctrl-c can take a few seconds
> (it will e.g. finish to transfer the ongoing message), but it will shut
> down cleanly.
>
> Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
>
> Consider this a small, but important cleaning that had been requested by
> someone during the last year. And as this has the potential to leave
> around half-written temp files, I decided that it was worth it. (and an
> easy start into the new year).
Sounds good. Once I upgrade I'll give it a spin; I have been used
to use ^\ (SIGQUIT) to quickly kill (and maybe restart) offlineimap.
More information about the OfflineIMAP-project
mailing list