]> the.earth.li Git - onak.git/commitdiff
Log when we're doing a clean keyd shutdown
authorJonathan McDowell <noodles@earth.li>
Thu, 31 Mar 2011 23:55:39 +0000 (16:55 -0700)
committerJonathan McDowell <noodles@earth.li>
Thu, 31 Mar 2011 23:55:39 +0000 (16:55 -0700)
  If keyd receives a quit message it will cleanly shutdown; log this
  fact so it's obvious that was the reason for exiting.

keyd.c

diff --git a/keyd.c b/keyd.c
index ccc47502f0fd0e86de306ead5a82ac927619d999..ebf142c3972ac69b83c33d675d4a3e6942111257 100644 (file)
--- 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;