journald.c | journald.c | |||
---|---|---|---|---|
skipping to change at line 27 | skipping to change at line 27 | |||
You should have received a copy of the GNU Lesser General Public License | You should have received a copy of the GNU Lesser General Public License | |||
along with systemd; If not, see <http://www.gnu.org/licenses/>. | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |||
***/ | ***/ | |||
#include <sys/epoll.h> | #include <sys/epoll.h> | |||
#include <sys/socket.h> | #include <sys/socket.h> | |||
#include <errno.h> | #include <errno.h> | |||
#include <unistd.h> | #include <unistd.h> | |||
#include <systemd/sd-journal.h> | #include "systemd/sd-journal.h" | |||
#include <systemd/sd-messages.h> | #include "systemd/sd-messages.h" | |||
#include <systemd/sd-daemon.h> | #include "systemd/sd-daemon.h" | |||
#include "journal-authenticate.h" | #include "journal-authenticate.h" | |||
#include "journald-server.h" | #include "journald-server.h" | |||
#include "journald-kmsg.h" | #include "journald-kmsg.h" | |||
#include "journald-syslog.h" | #include "journald-syslog.h" | |||
int main(int argc, char *argv[]) { | int main(int argc, char *argv[]) { | |||
Server server; | Server server; | |||
int r; | int r; | |||
skipping to change at line 68 | skipping to change at line 68 | |||
server_flush_dev_kmsg(&server); | server_flush_dev_kmsg(&server); | |||
log_debug("systemd-journald running as pid "PID_FMT, getpid()); | log_debug("systemd-journald running as pid "PID_FMT, getpid()); | |||
server_driver_message(&server, SD_MESSAGE_JOURNAL_START, "Journal s tarted"); | server_driver_message(&server, SD_MESSAGE_JOURNAL_START, "Journal s tarted"); | |||
sd_notify(false, | sd_notify(false, | |||
"READY=1\n" | "READY=1\n" | |||
"STATUS=Processing requests..."); | "STATUS=Processing requests..."); | |||
for (;;) { | for (;;) { | |||
usec_t t = (usec_t) -1, n; | usec_t t = USEC_INFINITY, n; | |||
r = sd_event_get_state(server.event); | r = sd_event_get_state(server.event); | |||
if (r < 0) | if (r < 0) | |||
goto finish; | goto finish; | |||
if (r == SD_EVENT_FINISHED) | if (r == SD_EVENT_FINISHED) | |||
break; | break; | |||
n = now(CLOCK_REALTIME); | n = now(CLOCK_REALTIME); | |||
if (server.max_retention_usec > 0 && server.oldest_file_use c > 0) { | if (server.max_retention_usec > 0 && server.oldest_file_use c > 0) { | |||
End of changes. 2 change blocks. | ||||
4 lines changed or deleted | 4 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |