From 0bfbdb67ead40bc829732f55626250719955c1f6 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Sun, 15 Jun 2008 14:14:36 -0400 Subject: [PATCH] Switched signal SIGUSR1 and SIGHUP. SIGHUP is more commonly used to reload configuration files. --- doc/pwmd.1.in | 4 ++-- src/pwmd.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/pwmd.1.in b/doc/pwmd.1.in index 3c20dcac..ae40d7bb 100644 --- a/doc/pwmd.1.in +++ b/doc/pwmd.1.in @@ -203,11 +203,11 @@ The file is read only once when a client first connects. .SH SIGNALS .TP -.B SIGHUP +.B SIGUSR1 Clears the entire file cache. If there are any clients connected, a key will be required for the next \fBOPEN\fP or \fBSAVE\fP command. .TP -.B SIGUSR1 +.B SIGHUP Reloads the configuration file. .SH FILES diff --git a/src/pwmd.c b/src/pwmd.c index 2b9ec979..672dc18f 100644 --- a/src/pwmd.c +++ b/src/pwmd.c @@ -1526,7 +1526,7 @@ static void server_loop(gint sockfd, gchar **socketpath) /* Caught a signal. */ switch (sig) { - case SIGUSR1: + case SIGHUP: reload_rcfile(); break; case SIGABRT: @@ -1537,7 +1537,7 @@ static void server_loop(gint sockfd, gchar **socketpath) xpanic(); #endif exit(EXIT_FAILURE); - case SIGHUP: + case SIGUSR1: CACHE_LOCK(NULL); log_write(N_("clearing file cache")); cache_clear(NULL, 2); -- 2.11.4.GIT