New ctrl-c handling and NEXT merged to MASTER

Daniel Shahaf d.s at daniel.shahaf.name
Mon Jan 9 02:57:33 UTC 2012



On Thu, Jan 5, 2012, at 03:22, Daniel Shahaf wrote:
> 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.

I've now upgraded, and I quite like the clean handling of ^C.  Thanks!



More information about the OfflineIMAP-project mailing list