From 42b31d8b0484bc910063db83bb1d2e4ba3e4ec9d Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Thu, 31 Mar 2011 16:55:39 -0700 Subject: [PATCH 1/1] 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. --- keyd.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5