]> git.notmuchmail.org Git - notmuch/commit
notmuch new: Don't prevent database upgrade from being interrupted.
authorCarl Worth <cworth@cworth.org>
Fri, 8 Jan 2010 16:45:16 +0000 (08:45 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 8 Jan 2010 16:45:16 +0000 (08:45 -0800)
commitc485c51585d8e51d289eb9830203fa322d7a0740
tree9b1944e31bb4638e15d576c4a806205714254315
parent1c86b48329c0cd69b4353accda4d28739ec1c0f3
notmuch new: Don't prevent database upgrade from being interrupted.

Our signal handler is designed to quickly flush out changes and then
exit. But if a database upgrade is in progress when the user
interrupts, then we just want to immediately abort. We could do
something fancy like add a return value to our progress_notify
function to allow it to tell the upgrade process to abort. But it's
actually much cleaner and robust to delay the installation of our
signal handler so that the default abort happens on SIGINT.
notmuch-new.c