From ecee62f204a93c7f512dce46657fbd101d155d78 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Fri, 18 Mar 2016 13:40:07 +0300 Subject: make termination caused by SIGTERM soft --- accel-pppd/cli/std_cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'accel-pppd/cli') diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c index 38e6a8b..2f5af8a 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; -- cgit v1.2.3