cdba-server: log message on CDBA exit

To identify closing of the session, log the message when CDBA quits.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
Dmitry Baryshkov
2024-05-21 20:14:41 +03:00
parent 95ff3049f8
commit cbad92a838

View File

@@ -201,6 +201,11 @@ static void sigpipe_handler(int signo)
watch_quit();
}
static void atexit_handler(void)
{
syslog(LOG_INFO, "exiting");
}
int main(int argc, char **argv)
{
int flags;
@@ -217,6 +222,7 @@ int main(int argc, char **argv)
username = "nobody";
openlog("cdba-server", LOG_PID, LOG_DAEMON);
atexit(atexit_handler);
ret = device_parser(".cdba");
if (ret) {