diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-03-18 13:40:07 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-03-18 13:40:07 +0300 |
commit | ecee62f204a93c7f512dce46657fbd101d155d78 (patch) | |
tree | d2fbe940bd94e7a93310651dceaf7c27e4866b75 /accel-pppd/cli | |
parent | 862f1cbfe781098be2263443fc108a46f521a163 (diff) | |
download | accel-ppp-ecee62f204a93c7f512dce46657fbd101d155d78.tar.gz accel-ppp-ecee62f204a93c7f512dce46657fbd101d155d78.zip |
make termination caused by SIGTERM soft
Diffstat (limited to 'accel-pppd/cli')
-rw-r--r-- | accel-pppd/cli/std_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c index 38e6a8b6..2f5af8aa 100644 --- a/accel-pppd/cli/std_cmd.c +++ b/accel-pppd/cli/std_cmd.c @@ -292,7 +292,7 @@ static int shutdown_exec(const char *cmd, char * const *f, int f_cnt, void *cli) if (f_cnt == 2) { if (!strcmp(f[1], "soft")) { - ap_shutdown_soft(NULL); + ap_shutdown_soft(NULL, 0); return CLI_CMD_OK; } else if (!strcmp(f[1], "hard")) hard = 1; @@ -303,7 +303,7 @@ static int shutdown_exec(const char *cmd, char * const *f, int f_cnt, void *cli) return CLI_CMD_SYNTAX; } - ap_shutdown_soft(NULL); + ap_shutdown_soft(NULL, 0); terminate_all_sessions(hard); @@ -370,7 +370,7 @@ static int restart_exec(const char *cmd, char * const *f, int f_cnt, void *cli) else return CLI_CMD_SYNTAX; - ap_shutdown_soft(restart); + ap_shutdown_soft(restart, 0); terminate_all_sessions(0); return CLI_CMD_OK; |