aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-03-05 12:56:35 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-03-05 12:56:35 +0200
commite558ab9db422cfd2bd59a07b72119b67a7598896 (patch)
tree11d3ade172aa417cd3bf37dd3dcd7c9a17dc13a1
parent8ed75ebd5d697e981a0ad6a03482d48397ec2f8d (diff)
downloadpies-e558ab9db422cfd2bd59a07b72119b67a7598896.tar.gz
pies-e558ab9db422cfd2bd59a07b72119b67a7598896.tar.bz2
Use pies_schedule_action instead of assigning action directly.
-rw-r--r--src/pies.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pies.c b/src/pies.c
index a678a7e..cc47e85 100644
--- a/src/pies.c
+++ b/src/pies.c
@@ -1629,17 +1629,17 @@ sig_handler (int sig)
case SIGTERM:
case SIGQUIT:
logmsg (LOG_NOTICE, "received signal %d", sig);
- action = ACTION_STOP;
+ pies_schedule_action (ACTION_STOP);
break;
case SIGHUP:
logmsg (LOG_NOTICE, "received signal %d", sig);
- action = ACTION_RELOAD;
+ pies_schedule_action (ACTION_RELOAD);
break;
case SIGUSR1:
logmsg (LOG_NOTICE, "received signal %d", sig);
- action = ACTION_RESTART;
+ pies_schedule_action (ACTION_RESTART);
break;
case SIGALRM:

Return to:

Send suggestions and report system problems to the System administrator.