diff options
author | Max Krasnyansky <maxk@qualcomm.com> | 2002-06-20 04:28:23 +0000 |
---|---|---|
committer | Max Krasnyansky <maxk@qualcomm.com> | 2002-06-20 04:28:23 +0000 |
commit | 7ad5aedae37fb54d064844e30bc6c26ab626e869 (patch) | |
tree | be3ed50af845fa8857394165fc48963a0cd28618 /hcid/main.c | |
parent | c7e67f2e3d1512db597270a03cf07f7ed6ab3eb1 (diff) |
Improved link key handling.
More verbose logging.
Diffstat (limited to 'hcid/main.c')
-rw-r--r-- | hcid/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hcid/main.c b/hcid/main.c index 8f6ec8bc..6b0a4067 100644 --- a/hcid/main.c +++ b/hcid/main.c @@ -249,15 +249,12 @@ static void init_defaults(void) static void sig_usr1(int sig) { - syslog(LOG_INFO, "Flushing link keys"); flush_link_keys(); } static void sig_term(int sig) { - syslog(LOG_INFO, "Terminating"); g_main_quit(event_loop); - save_link_keys(); } static void sig_hup(int sig) @@ -456,6 +453,8 @@ int main(int argc, char *argv[], char *env[]) /* Start event processor */ g_main_run(event_loop); + save_link_keys(); + syslog(LOG_INFO, "Exit."); return 0; } |