We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96500b7 commit 1851855Copy full SHA for 1851855
cdba-server.c
@@ -201,6 +201,11 @@ static void sigpipe_handler(int signo)
201
watch_quit();
202
}
203
204
+static void atexit_handler(void)
205
+{
206
+ syslog(LOG_INFO, "exiting");
207
+}
208
+
209
int main(int argc, char **argv)
210
{
211
int flags;
@@ -217,6 +222,7 @@ int main(int argc, char **argv)
217
222
username = "nobody";
218
223
219
224
openlog("cdba-server", LOG_PID, LOG_DAEMON);
225
+ atexit(atexit_handler);
220
226
221
227
ret = device_parser(".cdba");
228
if (ret) {
0 commit comments