Skip to content

Commit

Permalink
Merge pull request #170 from kinvolk/iaguis/libsystemd-map-dont-close
Browse files Browse the repository at this point in the history
sdjournal: don't close libsystemd on Close()
  • Loading branch information
lucab committed Jun 7, 2016
2 parents ff577b2 + fdff22c commit 6dc8b84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdjournal/journal.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,9 @@ func (j *Journal) Close() error {
C.my_sd_journal_close(sd_journal_close, j.cjournal)
j.mu.Unlock()

return j.lib.Close()
// we don't close the handle to reuse the symbol cache between Journal
// instances. It will go away when the process exits.
return nil
}

// AddMatch adds a match by which to filter the entries of the journal.
Expand Down

0 comments on commit 6dc8b84

Please sign in to comment.