Skip to content

Commit 6dc8b84

Browse files
committed
Merge pull request #170 from kinvolk/iaguis/libsystemd-map-dont-close
sdjournal: don't close libsystemd on Close()
2 parents ff577b2 + fdff22c commit 6dc8b84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdjournal/journal.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,9 @@ func (j *Journal) Close() error {
466466
C.my_sd_journal_close(sd_journal_close, j.cjournal)
467467
j.mu.Unlock()
468468

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

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

0 commit comments

Comments
 (0)