mirror of
https://github.com/linux-msm/cdba.git
synced 2026-02-25 13:11:56 -08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user