notmuch new/tag: Flush all changes to database when interrupted.
authorKeith Packard <keithp@keithp.com>
Fri, 13 Nov 2009 17:05:13 +0000 (09:05 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 13 Nov 2009 17:05:13 +0000 (09:05 -0800)
commitf4245aec94815176a52baae57a6c260b2bbae9c2
treee7429a51e9d6b0937652f5082d4ef8cfeb3fc0ed
parent8561c7463a5de3bd0990d8244abb1c67ca4f4a7d
notmuch new/tag: Flush all changes to database when interrupted.

By installing a signal handler for SIGINT we can ensure that no work
that is already complete will be lost if the user interrupts a
"notmuch new" run with Control-C.
notmuch-new.c
notmuch-tag.c