+#define _GNU_SOURCE /* See feature_test_macros(7) */
+#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <syslog.h>
#include "mt_server.h"
#include "signal_exit.h"
mt_blank_wake();
#endif
*pos = 0;
+ syslog(LOG_INFO, w->text);
char *line = new_line();
if (line) {
if (list_add(w->lines, w->text) == 0) {
return -1;
}
+ openlog(program_invocation_short_name, LOG_PID | LOG_PERROR, LOG_DAEMON);
+
memset(&info, 0, sizeof(info));
info.port = HTTP_PORT;
info.mounts = &mount;
free_line(self->fd_watcher.text);
list_deinit(self->fd_watcher.lines);
lws_context_destroy(self->context);
+ closelog();
}
#ifndef NO_MAIN