mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-03-12 20:18:34 +01:00
Revert "Exit cwmp when catch SIGTERM signal"
This reverts commit e4b3f6d71f.
This commit is contained in:
parent
46bee4638e
commit
8d573bba0e
1 changed files with 0 additions and 12 deletions
12
cwmp.c
12
cwmp.c
|
|
@ -393,13 +393,6 @@ int cwmp_exit(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void cwmp_sigterm_exit(int signo __attribute__((unused)))
|
||||
{
|
||||
CWMP_LOG(INFO, "Catch of SIGTERM: icwmp exit");
|
||||
cwmp_exit();
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
struct cwmp *cwmp = &cwmp_main;
|
||||
|
|
@ -420,11 +413,6 @@ int main(int argc, char **argv)
|
|||
if ((error = cwmp_init(argc, argv, cwmp)))
|
||||
return error;
|
||||
|
||||
if (signal(SIGTERM, cwmp_sigterm_exit) == SIG_ERR) {
|
||||
CWMP_LOG(INFO, "An error occurred while setting a signal handler.");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
CWMP_LOG(INFO, "STARTING ICWMP with PID :%d", getpid());
|
||||
cwmp->start_time = time(NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue