aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parent8ed75ebd5d697e981a0ad6a03482d48397ec2f8d (diff)
downloadpies-e558ab9db422cfd2bd59a07b72119b67a7598896.tar.gz
pies-e558ab9db422cfd2bd59a07b72119b67a7598896.tar.bz2
Use pies_schedule_action instead of assigning action directly.
Diffstat (limited to 'src')
-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)
1629 case SIGTERM: 1629 case SIGTERM:
1630 case SIGQUIT: 1630 case SIGQUIT:
1631 logmsg (LOG_NOTICE, "received signal %d", sig); 1631 logmsg (LOG_NOTICE, "received signal %d", sig);
1632 action = ACTION_STOP; 1632 pies_schedule_action (ACTION_STOP);
1633 break; 1633 break;
1634 1634
1635 case SIGHUP: 1635 case SIGHUP:
1636 logmsg (LOG_NOTICE, "received signal %d", sig); 1636 logmsg (LOG_NOTICE, "received signal %d", sig);
1637 action = ACTION_RELOAD; 1637 pies_schedule_action (ACTION_RELOAD);
1638 break; 1638 break;
1639 1639
1640 case SIGUSR1: 1640 case SIGUSR1:
1641 logmsg (LOG_NOTICE, "received signal %d", sig); 1641 logmsg (LOG_NOTICE, "received signal %d", sig);
1642 action = ACTION_RESTART; 1642 pies_schedule_action (ACTION_RESTART);
1643 break; 1643 break;
1644 1644
1645 case SIGALRM: 1645 case SIGALRM:

Return to:

Send suggestions and report system problems to the System administrator.