Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close the tempfile when journaling large messages #140

Merged
merged 1 commit into from
Feb 2, 2016

Conversation

nalind
Copy link
Contributor

@nalind nalind commented Jan 27, 2016

When we fail to log a message to journald due to ENOBUFS or EMSGSIZE, we attempt to pass the message to journald by passing it a descriptor attached to some shared memory. Since we won't be touching it again, we need to close the descriptor after we send it.

When we fail to log a message to journald due to ENOBUFS or EMSGSIZE, we
attempt to pass the message to journald by passing it a descriptor
attached to some shared memory.  We need to close the descriptor, too.
@jonboulle
Copy link
Contributor

pkg journal is pure Go. We could bind to sd_journal_sendv in pkg sdjournal

@jonboulle
Copy link
Contributor

LGTM, thanks.

jonboulle added a commit that referenced this pull request Feb 2, 2016
Close the tempfile when journaling large messages
@jonboulle jonboulle merged commit 7b2428f into coreos:master Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants