summaryrefslogtreecommitdiffstats
path: root/hcid/main.c
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-06-20 04:28:23 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-06-20 04:28:23 +0000
commit7ad5aedae37fb54d064844e30bc6c26ab626e869 (patch)
treebe3ed50af845fa8857394165fc48963a0cd28618 /hcid/main.c
parentc7e67f2e3d1512db597270a03cf07f7ed6ab3eb1 (diff)
Improved link key handling.
More verbose logging.
Diffstat (limited to 'hcid/main.c')
-rw-r--r--hcid/main.c5
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;
}