From: Jonathan McDowell Date: Thu, 31 Mar 2011 23:55:39 +0000 (-0700) Subject: Log when we're doing a clean keyd shutdown X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/42b31d8b0484bc910063db83bb1d2e4ba3e4ec9d?ds=sidebyside;hp=f9917d386685c7f641d493dbc78eb3eb41fb24bd Log when we're doing a clean keyd shutdown If keyd receives a quit message it will cleanly shutdown; log this fact so it's obvious that was the reason for exiting. --- diff --git a/keyd.c b/keyd.c index ccc4750..ebf142c 100644 --- a/keyd.c +++ b/keyd.c @@ -335,6 +335,8 @@ int sock_do(int fd) case KEYD_CMD_QUIT: cmd = KEYD_REPLY_OK; write(fd, &cmd, sizeof(cmd)); + logthing(LOGTHING_NOTICE, + "Exiting due to quit request."); ret = 1; trytocleanup(); break;