nemomobile/lipstick — pull request #9 by Vesuri (2012-09-24 15:11:20+00:00)
Title: Shut down the home screen cleanly on SIGINT and SIGTERM

In order to clean up properly when terminated via SIGINT or SIGTERM the signals need to be caught and the QApplication exited so that all destructors get run.

This is needed by an upcoming patch which stores the notifications on disk. Any notifications not stored on disk need to be written to disk on shutdown. Also, when the sqlite database is used in WAL mode it needs to be properly shut down in order to get all write-ahead-locked data written on disk.