Modified backend exit strategy so that 2nd ^C actually exits

Copied creator cvec if modified with REPLACE
This commit is contained in:
Olof hagsand 2023-06-13 13:28:30 +02:00
parent 53ceb35d51
commit a1e7c6f126
5 changed files with 33 additions and 8 deletions

View file

@ -158,6 +158,8 @@ backend_sig_term(int arg)
if (i++ == 0)
clicon_log(LOG_NOTICE, "%s: %s: pid: %u Signal %d",
__PROGRAM__, __FUNCTION__, getpid(), arg);
else
exit(1);
clixon_exit_set(1); /* checked in clixon_event_loop() */
}