mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
journal: silently skip failing large messages if journald is missing
We treated -ENOENT errors with silent failure, for small messages. Do the same for large messages.
This commit is contained in:
parent
726f4c4738
commit
4941e4aca9
@ -337,7 +337,11 @@ _public_ int sd_journal_sendv(const struct iovec *iov, int n) {
|
||||
return r;
|
||||
}
|
||||
|
||||
return send_one_fd_sa(fd, buffer_fd, mh.msg_name, mh.msg_namelen, 0);
|
||||
r = send_one_fd_sa(fd, buffer_fd, mh.msg_name, mh.msg_namelen, 0);
|
||||
if (r == -ENOENT)
|
||||
/* Fail silently if the journal is not available */
|
||||
return 0;
|
||||
return r;
|
||||
}
|
||||
|
||||
static int fill_iovec_perror_and_send(const char *message, int skip, struct iovec iov[]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user