diff --git a/man/sd-bus.xml b/man/sd-bus.xml index c1aef96024..4620590be4 100644 --- a/man/sd-bus.xml +++ b/man/sd-bus.xml @@ -47,6 +47,7 @@ sd_bus_attach_event3, sd_bus_creds_get_pid3, sd_bus_creds_new_from_pid3, +sd_bus_close3, sd_bus_default3, sd-bus-errors3, sd_bus_error3, diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index b7cef573e3..8c9a6106df 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -2058,8 +2058,13 @@ static int wait_for_change(sd_journal *j, int poll_fd) { if (r < 0) return log_error_errno(r, "Failed to determine journal waiting time: %m"); - if (ppoll(pollfds, ELEMENTSOF(pollfds), timeout == USEC_INFINITY ? NULL : timespec_store(&ts, timeout), NULL) < 0) + if (ppoll(pollfds, ELEMENTSOF(pollfds), + timeout == USEC_INFINITY ? NULL : timespec_store(&ts, timeout), NULL) < 0) { + if (errno == EINTR) + return 0; + return log_error_errno(errno, "Couldn't wait for journal event: %m"); + } if (pollfds[1].revents & (POLLHUP|POLLERR)) { /* STDOUT has been closed? */ log_debug("Standard output has been closed."); diff --git a/src/libsystemd/sd-bus/bus-error.c b/src/libsystemd/sd-bus/bus-error.c index e73f7057e1..5415aa76a3 100644 --- a/src/libsystemd/sd-bus/bus-error.c +++ b/src/libsystemd/sd-bus/bus-error.c @@ -205,8 +205,7 @@ _public_ void sd_bus_error_free(sd_bus_error *e) { free((void*) e->message); } - e->name = e->message = NULL; - e->_need_free = 0; + *e = (sd_bus_error) {}; } _public_ int sd_bus_error_set(sd_bus_error *e, const char *name, const char *message) { diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c index 7829bbd415..54280f5916 100644 --- a/src/shared/seccomp-util.c +++ b/src/shared/seccomp-util.c @@ -933,7 +933,7 @@ int seccomp_load_syscall_filter_set(uint32_t default_action, const SyscallFilter assert(set); /* The one-stop solution: allocate a seccomp object, add the specified filter to it, and apply it. Once for - * earch local arch. */ + * each local arch. */ SECCOMP_FOREACH_LOCAL_ARCH(arch) { _cleanup_(seccomp_releasep) scmp_filter_ctx seccomp = NULL;